I'm trying to understand example "ble_app_hts" how after advertising make a connection. I didn't see in code any call of function "sd_ble_gap_connect" ? how is made connection ?
I'm trying to understand example "ble_app_hts" how after advertising make a connection. I didn't see in code any call of function "sd_ble_gap_connect" ? how is made connection ?
ok, In example "ble_app_hts" I don't see a call to "sd_ble_gap_connect" function. But this function is require to establisch connection. and I want just to know how connection is possible without calling this function? and how to obtain status of my connection.
Since the ble_app_hts is a peripheral example you will not find any refrences to sd_ble_gap_connect as connections are initiated by Central devices. Thus, the SoftDevice will handle the connection request from the central and pass the BLE_GAP_EVT_CONNECTED event once the connection has been established, as shown here in the S130 API documentation. You will remain in a connected state untill either the peripheral or the central disconnects or the link times out due to the devices beeing out of range of each other.
Thank you , this information is enaugt for me for the moment , and i have to do smoe research
Happy to help :)