![Cypress EZ-BLE PRoC AN9684 Getting Started Download Page 39](http://html1.mh-extra.com/html/cypress/ez-ble-proc-an9684/ez-ble-proc-an9684_getting-started_2705915039.webp)
Getting Started With EZ-
BLE™ PRoC™ Module
www.cypress.com
Document No.: 001-96841 Rev. **
39
B l u e t o o t h L o w E n e r g y S e r vi c e S p e c i f i c E ve n t H a n d l 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 Ev
ent Handler