Bluetooth reconnect issue
Posted: Tue Oct 05, 2021 9:59 am
Hello,
I am able to connect to the ESP using the a2p example. It is also possible to reconnect to it, even when it is not discoverable.
So far that is ok.
But when i remove all bonded devices using: 'esp_bt_gap_remove_bond_device(dev_list)', my mobile phone is still able to reconnect to the ESP. (the ESP is in connectable mode, not discovery mode) After the remove, i check how many bonded devices the ESP has, and it returns zero.
So this is a bug in the bluetooth stack, it should check somewhere if the bluetooth device which wonts to connect is in the bonded devices list.
(strange thing to note: when i try the same thing with my computer and a bluetooth dongle, it works as expected)
Someone knows how to overcome this?
Thanks in advance!
I am able to connect to the ESP using the a2p example. It is also possible to reconnect to it, even when it is not discoverable.
So far that is ok.
But when i remove all bonded devices using: 'esp_bt_gap_remove_bond_device(dev_list)', my mobile phone is still able to reconnect to the ESP. (the ESP is in connectable mode, not discovery mode) After the remove, i check how many bonded devices the ESP has, and it returns zero.
So this is a bug in the bluetooth stack, it should check somewhere if the bluetooth device which wonts to connect is in the bonded devices list.
(strange thing to note: when i try the same thing with my computer and a bluetooth dongle, it works as expected)
Someone knows how to overcome this?
Thanks in advance!