Skip to content

Commit dc007d4

Browse files
committed
API change in the ESP32 Arduino libraries, see:
espressif/arduino-esp32#8724 https://github.com/espressif/arduino-esp32/blob/master/libraries/BLE/src/BLECharacteristic.h std::string is now changed to String.
1 parent f826e09 commit dc007d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

module/midi/BLE-MIDI/hardware/BLEMIDI_ESP32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class MyCharacteristicCallbacks : public BLECharacteristicCallbacks
113113

114114
void onWrite(BLECharacteristic *characteristic)
115115
{
116-
std::string rxValue = characteristic->getValue();
116+
String rxValue = characteristic->getValue();
117117
if (rxValue.length() > 0)
118118
{
119119
_bluetoothEsp32->receive((uint8_t *)(rxValue.c_str()), rxValue.length());

module/midi/BLE-MIDI/hardware/BLEMIDI_ESP32_NimBLE.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class MyCharacteristicCallbacks : public BLECharacteristicCallbacks
106106

107107
void onWrite(BLECharacteristic *characteristic)
108108
{
109-
std::string rxValue = characteristic->getValue();
109+
String rxValue = characteristic->getValue();
110110
if (rxValue.length() > 0)
111111
{
112112
_bluetoothEsp32->receive((uint8_t *)(rxValue.c_str()), rxValue.length());

0 commit comments

Comments
 (0)