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
  • So, you mean that it could not use the BLE_DIRECTED_IND to reconnect with the bonded host yet, right? If so, the slave how to connect to the certain host when more than one app in different phone run? I think the other demo such as HRS, could connect to the bonded host when power restart, which is also not enum as HID class. Maybe I do not make my question quite clear. What I want is the UART connect with the APP only one time, and could connect again auto when disconnected, if NO BOND_DELETE_BUTTON pressed.

Reply
  • So, you mean that it could not use the BLE_DIRECTED_IND to reconnect with the bonded host yet, right? If so, the slave how to connect to the certain host when more than one app in different phone run? I think the other demo such as HRS, could connect to the bonded host when power restart, which is also not enum as HID class. Maybe I do not make my question quite clear. What I want is the UART connect with the APP only one time, and could connect again auto when disconnected, if NO BOND_DELETE_BUTTON pressed.

Children
No Data
Related