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

How the devcies are identified in ble_central

Haii i'm using Nordic nrf52840 with SDK 15.0.0 and soft device of s140 

now my issues is  i want to connect a four device to the  central and there should be Bidirectional communication in between central and peripheral 4 devices.

My question is how the central device communicate with only  one specific device? how it is identifed among the connected one?

is there any example project available which meet my requirement. 

Thanks in advance 

  • Hi,

    All connection related events from the SoftDevice are associated with a connection handle. This uniquely identifies that specific connection. The connection handle is assigned and the application is informed about it by the BLE_GAP_EVT_CONNECTED event. This forms the basis for managing multiple connections.

    Using the connection handle, you can support multiple connections in service in different ways. For instance, the IAS service implementation (<SDK>\components\ble\ble_services\ble_ias\ble_ias.c) and a few others, use the BLE Link Context Manager. The LBS service implementation (<SDK>\components\ble\ble_services\ble_lbs_c\ble_lbs_c.c) doe sit differently, by just passing through the connection handle (conn_handle).

Related