This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to make the ble_app_uart demo not advertising once power on?

Hi guys, I design one custom application based on the ble_app_uart demo and find the device is advertising when power on. I want to set it auto connect once the device has bonded. I add the dm APIs into this project and modify the adverting_init() and advertising_start(), which do as the hid keyboard project, but nothing change. It seems the bond info does not write to the flash correctly. could you guide me how to make it true ? with the flow better.

Thanks a lot.

Parents
  • Hi Hung Bui, As your description, I know it needs the app running to find the device and connect every time on ble_app_uart project. What I want is to make it run as the hid keyboard, which not need to connect once it has bonded yet. So, as my understand, add the device manager function could store the bond info, and let the device to connect to the app auto, instead of connecting by hand every time when power on. But, something miss or wrong so that it does not work correctly, still advertising and wait for the app to connect. That is what I ask for help. Only hid could do it like this? How could I make it auto connect? Any guide or document should be better. Thanks for your reply.

Reply
  • Hi Hung Bui, As your description, I know it needs the app running to find the device and connect every time on ble_app_uart project. What I want is to make it run as the hid keyboard, which not need to connect once it has bonded yet. So, as my understand, add the device manager function could store the bond info, and let the device to connect to the app auto, instead of connecting by hand every time when power on. But, something miss or wrong so that it does not work correctly, still advertising and wait for the app to connect. That is what I ask for help. Only hid could do it like this? How could I make it auto connect? Any guide or document should be better. Thanks for your reply.

Children
No Data
Related