This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

multilink

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

Parents Reply
  • 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

Children
No Data
Related