BLE Restart Functionality for Zephyr.

Hi all, 

I am trying to use the bt_disable functionality on Adafruit Feather sense which has nrf52840 to restart a connectable BLE Service. The first call to  bt_le_adv_start works just fine but when I do the bt_le_adv_stop() and after a delay of X seconds, if I call the bt_le_adv_start() routine, it gives me -EIO(-5) for some reason. I can't really understand what can be the reason here. Can anyone please help me understand the issue here? 

The ideal goal of the system is to go in deep sleep for 20 minutes and wake up after that to send data to a gateway over BLE and repeat this process. When I started developing on Zephyr bt_disable() functionality was not supported but now that it is supported, I would like to leverage it to keep my processor in deep sleep for 20 minutes. 

I have attached my source code and proj.conf file with this post and also a screenshot of BT_LOG from the system. Would really appreciate your help with this issue.

PS: This is my first post on any developer support portal so I apologize if the post is missing information or is not accurate. Please let me know if anyone needs further information on this topic. Thanks in Advance.

Error:

Source code:

ble_restart_zephyr_nrf52840.zip

Parents Reply Children
No Data
Related