Level 2
songzaiwu
Level 2
Aug 04, 2022
12:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
void HandleAlertLEDs(uint8 status); How does the program run to this function?
1 Reply

Moderator

Moderator
Aug 04, 2022
02:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi @songzaiwu
You can check the IasEventHandler() which is registered inside the main() function which Extract Alert Level value from the GATT DB using the CYBLE_IAS_ALERT_LEVEL as a parameter to CyBle_IassGetCharacteristicValue routine. Store the Alert Level Characteristic value in "alertLevel" variable.This variable is then passed as a parameter to HandleAlertLEDs() function and based upon the value recieved you can see the changes in the LED. you can check this IasEventHandler() from Find me example in snaphot below.
Thanks & Regards
Pratiksha V