Unverified Commit 67583e84 authored by Felix Collins's avatar Felix Collins Committed by GitHub

Return size_t instead of uint8_t from BLECharacteristic::getLength(). Allows...

Return size_t instead of uint8_t from BLECharacteristic::getLength().  Allows large MTU to be used. (#5687)
parent 108e4671
......@@ -191,7 +191,7 @@ uint8_t* BLECharacteristic::getData() {
* @brief Retrieve the current length of the data of the characteristic.
* @return Amount of databytes of the characteristic.
*/
uint8_t BLECharacteristic::getLength() {
size_t BLECharacteristic::getLength() {
return m_value.getLength();
} // getLength
......
......@@ -62,7 +62,7 @@ public:
BLEUUID getUUID();
std::string getValue();
uint8_t* getData();
uint8_t getLength();
size_t getLength();
void indicate();
void notify(bool is_notification = true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment