Skip to main content
Visitor II
September 28, 2023
Solved

How to set RUN mode while pairing in STOP2 mode while advertising BLE on STM32WB

I am currently using STM32WB5MMGH6TR for product development.
It is in STOP2 mode while advertising and RUN mode while pairing. I would like to make it so that when it is disconnected it goes back to STOP2 mode, but I am having trouble finding a good example.
Is there any good way to do this?

This topic has been closed for replies.
Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
October 17, 2023

Hello,

You can start from BLE_HeartRate example available in STM32CubeWB package which is the reference for low power. By default in this example, the advertising is restarted when a disconnection occurs, you can removed this if you want. 

Best Regards,

2 replies

ST Employee
October 10, 2023

Hi All,

 

This question has been escalated to our online support system for direct support.

 

Regards,
Jake
ST Support

Remy ISSALYS
Remy ISSALYSBest answer
ST Technical Moderator
October 17, 2023

Hello,

You can start from BLE_HeartRate example available in STM32CubeWB package which is the reference for low power. By default in this example, the advertising is restarted when a disconnection occurs, you can removed this if you want. 

Best Regards,