hi,
i am using one central and 18 peripherals. i am unable to send data to one particular peripheral from the central .plz help me to identify a peripheral in the group of 18 peripherals by central node.
Regards,
jagadeesh
hi,
i am using one central and 18 peripherals. i am unable to send data to one particular peripheral from the central .plz help me to identify a peripheral in the group of 18 peripherals by central node.
Regards,
jagadeesh
Hi
Are you using the ble_app_multilink_central example as a starting point?
All of the connected devices will have a unique connection handle and a unique BLE address, and by referring to these you can access devices independently, but you can also assign unique device names to the different devices if you want some more intuitive way to separate them.
Best regards
Torbjørn
where can i find the unique BLE address and unique connection handle.
Regards,
jagadeesh
Hi
Both of these values will be provided in the BLE_GAP_EVT_CONNECTED event, which occurs when a new connection is established.
The connection handle can be found in:
p_ble_evt->evt.gap_evt.conn_handle
And the address of the connected device in:
p_ble_evt->evt.gap_evt.params.connected.peer_addr
The connection handle will be an index starting at 0, and increasing by 1 for each connected device, so if you want to maintain an array of connected devices you can use the connection handle as an index into this array.
Best regards
Torbjørn