add pairing/repairing option to ble_blinky example

good day, we plan to create a device which will send button status and the ble_blinky example seems to match our requirement. is it possible to add pairing/repairing option? tried checking the ble_proximity example but we seems to have auto repairing problem.

can you help me find reference for adding pairing option to ble_blinky example?

Parents Reply
  • yes. but our main goal is for the ble_blinky example to be pairable in the bluetooth settings. then can auto connect to the phone just like how the hid_mouse/keyboard works once it is powered up again.

    when we tried the ble_proximity example, the device can be discovered in the bluetooth device list and can connect but after we turn off the nrf board, it doesn't auto connect, need to manually select the device again from the list to get connected

    using nrf5_SDK17.1

Children
  • Please try to test again with ble_app_proximity. 
    If you test with nRF Connect on mobile phone, at least on Android, you can find the option "Use autoConnect" check box. If you check that check box and make the connection the phone will automatically reconnect to the device. 

    You can also test that using the nRF Toolbox app on the phone. It will automatically reconnect after the device is out of range or turned off. 

Related