Skip to main content
Visitor II
Sep 28, 2023 8:20 AM UTC
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
Oct 17, 2023 10:17 AM UTC

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
Oct 10, 2023 2:55 PM UTC

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
Oct 17, 2023 10:17 AM UTC

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,