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
  • @As mentioned, only HID is connected automatically by the operating system (Android or iOS).

    If you can create your mobile app running in the background and do scanning and connecting constantly, you can achieve the same thing. You don't need to have the end user to press the connect button by hand. However, be aware that running an app in the background to scan continuously may consume the phone's power more.

Reply
  • @As mentioned, only HID is connected automatically by the operating system (Android or iOS).

    If you can create your mobile app running in the background and do scanning and connecting constantly, you can achieve the same thing. You don't need to have the end user to press the connect button by hand. However, be aware that running an app in the background to scan continuously may consume the phone's power more.

Children
No Data
Related