cancel
Showing results for 
Search instead for 
Did you mean: 

How do I know if device is Advertising in progress

Ebin34
Associate II

Hello!

I need your help in finding a way to know if BLE advertising is active.

Thank you

 

1 ACCEPTED SOLUTION

Accepted Solutions

No, but I suggest you to read the variable that activate the blinking of the green LED. For more information, you can use the AN5270. In this application note, you may find more details about the ACI_HAL_GET_LINK_STATUS that I think it can help you.

Best regards.

II

View solution in original post

6 REPLIES 6
Issamos
Lead II

Hello @Ebin34 

You can use different way to now if your BLE is advertising or not. For exemple in this application , a green led blink when advertising (take a look at the readme.txt file).

Screenshot_2023-09-18-08-14-05-85_40deb401b9ffe8e1df2f1cc5ba480b12.jpg

Best regards.

II

Yes, But from code ? I want to get what the current status of advertising is, e.g., enabled/disabled?

You can use a variable that receive 1 for exemple when advertising and 0 when not and always check the state of this variable.

Best regards.

II

Thank you! But, do you know if there is an HW or another low-level variable I can read?

No, but I suggest you to read the variable that activate the blinking of the green LED. For more information, you can use the AN5270. In this application note, you may find more details about the ACI_HAL_GET_LINK_STATUS that I think it can help you.

Best regards.

II

Thank you so much!