- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
void HandleAlertLEDs(uint8 status); How does the program run to this function?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- 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