esp32-snippets
esp32-snippets copied to clipboard
Is there a way to remove the ble bonding info - ESP32 in ArduinoIDE ?
Hello Is there a way to remove the ble bonding info in ArduinoIDE ? I have a little experience with esp32. I want a short and complete example. Thank you
//example my code//
content2 = Serial.readStringUntil('\r'); if (content2=="RRR"){
??? remove bonded devices ???
}
I dont think there is any API in this library, you will have to use esp-idf functions to do it.
Is there a short and complete example of this need on esp-idf? I would like to follow the "if" in the example above
Thank you
https://github.com/espressif/esp-idf/blob/6517c5033aab27afe491e433d6beeba93dfb1aa7/examples/bluetooth/bluedroid/ble/gatt_security_server/main/example_ble_sec_gatts_demo.c#L273-L284
I couldn't use this method to clear the memory address (binding mode) or connection address (connection mode) !!!
Why?
I actually want to unpair from the destination device.
thanks again
Is it possible to do this?
If anyone want's to know how to list and/or remove/delete a BLE Bond/Pair in Arduino (ESP32), see https://github.com/espressif/arduino-esp32/issues/1458#issuecomment-2619818858