cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Smart Bluetooth

New Contributor II

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
Reply
1 Solution
Moderator
Moderator

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
Moderator
Moderator

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