Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Automatically connect with SDK14.2 for HID

Hi,

   In our application, we are using HID to control mobile phone or PC.When users connected our product, it will automatically connect next time.

But our product is battery powered,so we want to prohibit automatic connection when the battery is low(3.6V Li-battery).

How should I do when battery is low?

The version of SDK is SDK14.2.

Parents Reply
  • Hi,

    I have the same issue which is connected automatically from the host in HID.

    I disconnect by using sd_ble_gap_disconnected() and stop advertising using sd_ble_gap_adv_stop().

    I confirmed the advertise is not started automatically in the BLE_GAP_EVT_DISCONNECTED.

    I'm using nrf52840 with SD version 17.0.2.

    Would you please help to prevent host from connecting automatically?

    Regards,

    Ben

Children
No Data
Related