BLE Client - error on scan after a re-connection
Posted: Mon Sep 02, 2019 2:35 pm
Hi all,
I'm implementing a gatt client device that can read a HeartRate module. That simple.
The thing is that every thing works properly except for one thing;
If I performa a connection with a HR device and after that I disconnect, there is no way that I can perform a new scan for new devices, the only way to work it again is by make a esp32 reset, and that does not work for my project.
What I realized is that the scanning function is executed properly, but there are no in-coming callbacks from advertisings (ESP_GAP_BLE_SCAN_RESULT_EVT).
For some reason after a connection has been performed, the callbacks coming from SCAN_RESULT are not working.
Did someone face the same issue?
or
Is someone making it work?
Thank you and regards!
I'm implementing a gatt client device that can read a HeartRate module. That simple.
The thing is that every thing works properly except for one thing;
If I performa a connection with a HR device and after that I disconnect, there is no way that I can perform a new scan for new devices, the only way to work it again is by make a esp32 reset, and that does not work for my project.
What I realized is that the scanning function is executed properly, but there are no in-coming callbacks from advertisings (ESP_GAP_BLE_SCAN_RESULT_EVT).
For some reason after a connection has been performed, the callbacks coming from SCAN_RESULT are not working.
Did someone face the same issue?
or
Is someone making it work?
Thank you and regards!