Search found 1 match
- Sat Jan 06, 2024 3:15 am
- Forum: General Discussion
- Topic: Esp32 ble. When the connection is lost, it does not connect again, I need to reset it. Can you help me with this?
- Replies: 4
- Views: 8300
Re: Esp32 ble. When the connection is lost, it does not connect again, I need to reset it. Can you help me with this?
The BLE advertise process is stopped on device connect, it has to be restarted after disconnect using a callback: class MyServerCallbacks : public BLEServerCallbacks { void onConnect(BLEServer *pServer) { deviceConnected = true; Serial.println("BLE device connected"); }; void onDisconnect(BLEServer ...