Return size_t instead of uint8_t from BLECharacteristic::getLength(). Allows large MTU to be used. (#5687)

This commit is contained in:
Felix Collins
2021-10-02 01:47:42 +13:00
committed by GitHub
parent 108e467164
commit 67583e84d6
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ uint8_t* BLECharacteristic::getData() {
* @brief Retrieve the current length of the data of the characteristic. * @brief Retrieve the current length of the data of the characteristic.
* @return Amount of databytes of the characteristic. * @return Amount of databytes of the characteristic.
*/ */
uint8_t BLECharacteristic::getLength() { size_t BLECharacteristic::getLength() {
return m_value.getLength(); return m_value.getLength();
} // getLength } // getLength

View File

@ -62,7 +62,7 @@ public:
BLEUUID getUUID(); BLEUUID getUUID();
std::string getValue(); std::string getValue();
uint8_t* getData(); uint8_t* getData();
uint8_t getLength(); size_t getLength();
void indicate(); void indicate();
void notify(bool is_notification = true); void notify(bool is_notification = true);