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 ?
The SoftDevice API uses SuperVisor Calls( SVCs) to exposes the functionality of the SoftDevice , this is stated here in the S130 SoftDevice Specification.
The SoftDevice is delivered as a precompiled binary and the SVCs are used to expose the SoftDevice functions without having any link-time dependencies between the application and the BLE protocol stack.
Yes, you call the SoftDevice API functions and then you get an event when the SD finishes executing that specific function. I do not understand why you need to pass events to a variable, you simply have to handle the events. Download the SDK found here, and open one of the examples that are listed here, e.g. the Heart Rate Application and see how the events are handled.
Yes, you call the SoftDevice API functions and then you get an event when the SD finishes executing that specific function. I do not understand why you need to pass events to a variable, you simply have to handle the events. Download the SDK found here, and open one of the examples that are listed here, e.g. the Heart Rate Application and see how the events are handled.