esp32-snippets icon indicating copy to clipboard operation
esp32-snippets copied to clipboard

Is there a way to remove the ble bonding info - ESP32 in ArduinoIDE ?

Open elias-hatami opened this issue 6 years ago • 8 comments

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 ???

}


elias-hatami avatar Aug 05 '19 23:08 elias-hatami

I dont think there is any API in this library, you will have to use esp-idf functions to do it.

chegewara avatar Aug 09 '19 19:08 chegewara

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

elias-hatami avatar Aug 10 '19 21:08 elias-hatami

https://github.com/espressif/esp-idf/blob/6517c5033aab27afe491e433d6beeba93dfb1aa7/examples/bluetooth/bluedroid/ble/gatt_security_server/main/example_ble_sec_gatts_demo.c#L273-L284

chegewara avatar Aug 10 '19 23:08 chegewara

I couldn't use this method to clear the memory address (binding mode) or connection address (connection mode) !!!

elias-hatami avatar Aug 11 '19 17:08 elias-hatami

Why?

chegewara avatar Aug 11 '19 21:08 chegewara

I actually want to unpair from the destination device.

thanks again

elias-hatami avatar Aug 11 '19 21:08 elias-hatami

Is it possible to do this?

elias-hatami avatar Aug 11 '19 21:08 elias-hatami

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

Rob58329 avatar Jan 28 '25 18:01 Rob58329