About Bluetooth Routines

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

cross mob
songzaiwu
Level 3
Level 3
50 sign-ins 10 questions asked 25 sign-ins

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

QQ截图20220804152453.png

 

0 Likes
1 Solution
PratikshaV
Moderator
Moderator
Moderator
100 solutions authored 5 likes given 250 sign-ins

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

View solution in original post

0 Likes
1 Reply
PratikshaV
Moderator
Moderator
Moderator
100 solutions authored 5 likes given 250 sign-ins

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