Merge branch 'master' into WiFi_enum

This commit is contained in:
Garth Vander Houwen
2022-08-06 12:38:19 -07:00
committed by GitHub
3 changed files with 5 additions and 4 deletions

View File

@@ -62,9 +62,9 @@ PhoneAPI *bluetoothPhoneAPI;
class ESP32BluetoothToRadioCallback : public NimBLECharacteristicCallbacks {
virtual void onWrite(NimBLECharacteristic *pCharacteristic) {
DEBUG_MSG("To Radio onwrite\n");
auto valueString = pCharacteristic->getValue();
auto val = pCharacteristic->getValue();
bluetoothPhoneAPI->handleToRadio(reinterpret_cast<const uint8_t*>(&valueString[0]), pCharacteristic->getDataLength());
bluetoothPhoneAPI->handleToRadio(val.data(), val.length());
}
};

View File

@@ -103,3 +103,4 @@
#endif
#define SERIAL0_RX_GPIO 3 // Always GPIO3 on ESP32