mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-05 14:56:32 +02:00
Return size_t instead of uint8_t from BLECharacteristic::getLength(). Allows large MTU to be used. (#5687)
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Reference in New Issue
Block a user