Re: Pairing or bonding from ESP32 Central using NimBLE stack
Posted: Fri May 01, 2020 8:05 am
Hi @nirmal.lad, It seems I referred to some other log and made that last comment. Sorry for that, please disregard my earlier comment. Can you please provide complete logs after `make erase_flash flash monitor` again ? I could only think of reason for this error might be because you are switching off/on your phone's Bluetooth as well before reconnecting to ESP32. Can you try without changing the Bluetooth state of phone (no reboot & no turning off Bluetooth once bond is created) ? The reason is, from the Bluetooth spec (Vol 6, Part B, section 1.3.2.1) :
If the `peer_id_addr` is changed then this is treated as a new device.If the static address of a device is changed, then the address stored in
peer devices will not be valid and the ability to reconnect using the old address
will be lost.