How to get Bluetooth_Client state

Hi.

I’m developing an application to send data to an ESP32 and the idea was to control the status of the Bluetooth connection so that if it fails, launch a window to connect again.

Since I am going to use Bluetooth_Client, I have not seen that it has a State method like Bluetooth_Server does and I had thought about using a Timer and launching every x time to check if it is connected.

Is there an easier way to do it?

Thanks in advance for your help.

No. .
Taifun

1 Like