Please refer the code examples on PSoC 4 BLE in PSoC Creator. This will give some information on BLE component and how BLE communication takes place.
I already looked at all your code examples but I still can’t figure out what the thing is behind it.
There is no real explanation for how to implement the services of an existing sensor.
Also there are no real documentations that help me to understand when I have to use the Stackeventhandler or the processeventhandler ot the IAShandler.
Sent from Mail for Windows 10
1 of 1 people found this helpful
1. The BLE Component requires that you define a callback function for handling BLE stack events. This is passed as a parameter to the CyBle_Start() API. Here the callback function is Stackeventhandler (which is user defined).
The callback function is of type CYBLE_CALLBACK_T, as defined by:-
void (* CYBLE_CALLBACK_T)(uint32 eventCode, void *eventParam);
▪ eventCode: The stack event code
▪ eventParam : Stack event parameters
2. Similarly there are some BLE Service_Specific functions like CyBle_IasRegisterAttrCallback (CYBLE_CALLBACK_T callbackFunc) here IAShandler is used as callback function. These are user defined callback functions.
Please refer the section Callback Functions in the document for more information on APIs.