How to stop advertising on CYW20721B2EVK-02

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

cross mob
alca_3047856
Level 1
Level 1
10 sign-ins 5 questions asked 5 sign-ins

Hello,

I am looking at the hello_sensor example project, and I see the call to wiced_bt_start_advertisements(), which starts advertising, and I can see the BLE device show up on a BLE scanning app.

What I am trying to do now is stop the advertising after 1 minute to try to save power if no client has connected to the device.  I do not see a corresponding wiced_bt_stopadvertisements() function anywhere.

Does anyone the API call to stop the device from advertising?

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hello alca_3047856 ,

To stop the advertising, you can use the same API wiced_bt_start_advertisements with advert mode BTM_BLE_ADVERT_OFF to stop advertising.

Refer API  details in wiced_bt_dev.h

Regards,

Anjana

View solution in original post

1 Reply
AnjanaM_61
Moderator
Moderator
Moderator
5 comments on KBA First comment on KBA 5 questions asked

Hello alca_3047856 ,

To stop the advertising, you can use the same API wiced_bt_start_advertisements with advert mode BTM_BLE_ADVERT_OFF to stop advertising.

Refer API  details in wiced_bt_dev.h

Regards,

Anjana