Skip to main content
Kyuns.2
Associate II
June 28, 2022
Question

How to check the connection state of BLE?

  • June 28, 2022
  • 3 replies
  • 1155 views

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
Technical Moderator
June 28, 2022

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
June 28, 2022

Hello, Remy

How can I access the variable?

Best Regrads​

Remy ISSALYS
Technical Moderator
June 28, 2022

Hello,

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

Best Regards