Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 4 Forum Discussions

songzaiwu
Level 2
10 questions asked 25 sign-ins 10 replies posted
Level 2

void HandleAlertLEDs(uint8 status);      How does the program run to this function?

QQ截图20220804152453.png

 

0 Likes
1 Reply
PratikshaV
Moderator
Moderator 10 likes received 100 replies posted 25 solutions authored
Moderator

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.

Capture.PNG

 

Thanks & Regards 

Pratiksha V

0 Likes