cancel
Showing results for 
Search instead for 
Did you mean: 

How to check the connection state of BLE?

Kyuns.2
Associate II

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.

3 REPLIES 3
Remy ISSALYS
ST Employee

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
Associate II

Hello, Remy

How can I access the variable?

Best Regrads​

Remy ISSALYS
ST Employee

Hello,

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

Best Regards