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?
Fullscreen
1
2
3
4
5
6
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;
// ...
}