User Manual

Getting Started With EZ-
www.cypress.com Document No.: 001-96841 Rev. ** 39
Blu e to o t h L ow Ene r g y Se r vi c e S p ec i f ic E v e n t Ha n dl e r
The BLE Component also generates events corresponding to each of the services supported by your design through the
service event handler that was registered in the initialization section of the code (IasEventHandler in this example). For the
Find Me application that you are creating, the BLE Component will generate Immediate Alert Service (IAS) events that will let
the application know if the Alert Level characteristic has been updated with a new value. Figure 50 and Figure 51 show the
flow chart and firmware for handling BLE IAS events.
Figure 50. Bluetooth Low Energy IAS Event Handler Flowchart
Alert Level
Updated
Y
N
Return from IAS Event
Handler
Update the global
variable
alertLevel”
IAS Event Handler