Skip to main content
KKIM.6
Senior
May 4, 2022
Solved

How can I prevent the fast advertisement mode from stopping? I'm using STM32WB and following BLE p2p server example. All the examples turn off fast advertising mode after the 60s from reset. How can I avoid this automatic stopping/make it takes longe

  • May 4, 2022
  • 2 replies
  • 886 views

..

This topic has been closed for replies.
Best answer by Remy ISSALYS

Hello,

You can removed the timer used to stop the advertising see Advertising_mgr_timer_Id or you can changed the timeout value, see the following define in app_ble.c file:

#define FAST_ADV_TIMEOUT (30*1000*1000/CFG_TS_TICK_VAL) /**< 30s */
#define INITIAL_ADV_TIMEOUT (60*1000*1000/CFG_TS_TICK_VAL) /**< 60s */

Best Regards

2 replies

KKIM.6
KKIM.6Author
Senior
May 4, 2022

I'm developing an implantable device. So, resetting the microcontroller is not easy.

So, I want to use the power off / on to reset the microcontroller but if it goes to power saving mode, it will be delayed.

Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
May 27, 2022

Hello,

You can removed the timer used to stop the advertising see Advertising_mgr_timer_Id or you can changed the timeout value, see the following define in app_ble.c file:

#define FAST_ADV_TIMEOUT (30*1000*1000/CFG_TS_TICK_VAL) /**< 30s */
#define INITIAL_ADV_TIMEOUT (60*1000*1000/CFG_TS_TICK_VAL) /**< 60s */

Best Regards