mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-05 06:46:31 +02:00
Don't convert to null-terminated string prior to writeValue (#4473)
fixes: #4472
This commit is contained in:
@ -535,7 +535,7 @@ std::string BLERemoteCharacteristic::toString() {
|
|||||||
* @return N/A.
|
* @return N/A.
|
||||||
*/
|
*/
|
||||||
void BLERemoteCharacteristic::writeValue(std::string newValue, bool response) {
|
void BLERemoteCharacteristic::writeValue(std::string newValue, bool response) {
|
||||||
writeValue((uint8_t*)newValue.c_str(), strlen(newValue.c_str()), response);
|
writeValue((uint8_t*)newValue.data(), newValue.length(), response);
|
||||||
} // writeValue
|
} // writeValue
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user