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

How to use ble_hids with multiple peripherals

I'm trying to create a HID bluetooth device with multiple connections to centrals. Looking at the ble_hids service implementation, the on_connect event handler sets the connection handle of a new connection on the hids instance. How can I associate one hids service with one connection?

static void on_connect(ble_hids_t * p_hids, ble_evt_t const * p_ble_evt)
{
// ...
p_hids->conn_handle = p_ble_evt->evt.gap_evt.conn_handle;
// ...
}

Parents Reply Children
No Data
Related