CYW20706, BLE advertising check

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

cross mob
adam
Level 4
Level 4
5 solutions authored 25 replies posted 50 sign-ins

Hi , 

I am using CYW20706, 

start with BLE peripheral role and continue advertising,

I hve a question, 

if I want to continue advertising and avoid any possible to stop it, which is the best way to do?

1. timer regularly call wiced_bt_start_advertisements(), to enable advertising whatever advertising is enalbe or disable.

2.  timer regularly call wiced_bt_ble_get_current_advert_mode(), to check advertising state. make sure state first.

0 Likes
1 Solution
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

Please configure advertisement duration in wiced_bt_cfg_settings_t which will be present in app_bt_cfg.c. Setting 0 to high_duty_duration/low_duty_duration will ensure the advertisement stay for infinite duration. 

FYI. Few sample applications for initial learning can be found here. https://github.com/Infineon/CypressAcademy_BT101_Files/tree/master/Projects/ch04a/key_ch04a_ex01_ble 

Thanks,

-Dheeraj.P.K

View solution in original post

0 Likes
1 Reply
DheerajPK_41
Moderator
Moderator
Moderator
750 replies posted 500 likes received 500 replies posted

Hi,

Please configure advertisement duration in wiced_bt_cfg_settings_t which will be present in app_bt_cfg.c. Setting 0 to high_duty_duration/low_duty_duration will ensure the advertisement stay for infinite duration. 

FYI. Few sample applications for initial learning can be found here. https://github.com/Infineon/CypressAcademy_BT101_Files/tree/master/Projects/ch04a/key_ch04a_ex01_ble 

Thanks,

-Dheeraj.P.K

0 Likes