Skip to main content
Kyuns.2
Associate II
Jun 28, 2022 2:23 AM UTC
Question

How to check the connection state of BLE?

Hi,

I'm using stm32wb55 for ble application.

I want to check the connection state of BLE for conditioning case.

Is there any global instance or register which contain the state of BLE?

Thanks.

This topic has been closed for replies.

3 replies

Remy ISSALYS
ST Technical Moderator
Jun 28, 2022 10:07 AM UTC

Hello,

In order to check the connection state of your BLE device, you can use the following variable:

BleApplicationContext.Device_Connection_Status

Best Regards

Kyuns.2
Kyuns.2Author
Associate II
Jun 28, 2022 10:22 AM UTC

Hello, Remy

​

How can I access the variable?

​

Best Regrads​

​

Remy ISSALYS
ST Technical Moderator
Jun 28, 2022 12:56 PM UTC

Hello,

You can look example available in STM32CubeWB package, this variable is used in app_ble.c file.

Best Regards