Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arduino-esp32 v3.0.0 change paramter types ble #468

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions firmware/openbot/openbot.ino
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@
#define MTV 8 // Multi Terrain Vehicle
#define DIY_ESP32 9 // DIY without PCB


//------------------------------------------------------//
// SETUP - Choose your body
//------------------------------------------------------//

// Setup the OpenBot version (DIY, PCB_V1, PCB_V2, RTR_TT, RC_CAR, LITE, RTR_TT2, RTR_520, DIY_ESP32)
#define OPENBOT DIY
#define OPENBOT DIY_ESP32

//------------------------------------------------------//
// SETTINGS - Global settings
Expand Down Expand Up @@ -592,7 +593,7 @@ class MyServerCallbacks : public BLEServerCallbacks {

class MyCallbacks : public BLECharacteristicCallbacks {
void onWrite(BLECharacteristic *pCharacteristic) {
std::string bleReceiver = pCharacteristic->getValue();
String bleReceiver = pCharacteristic->getValue();
if (bleReceiver.length() > 0) {
for (int i = 0; i < bleReceiver.length(); i++) {
on_ble_rx(bleReceiver[i]);
Expand Down Expand Up @@ -1885,4 +1886,4 @@ void update_speed_rm() {
counter_rm++;
}
}
#endif
#endif