Error 516: uneable to write: broken pipe

Hi,
I've made a simple app that communicate by Bluetooth whit the ESP32 some data and commands.
I would like to solve a problem: when the ESP32 is shutting down and the app is connected to it, happens that the error appears Error 516: uneable to write: broken pipe ( obviously).... How can I control that the Bluetooth is actually connected?
Thanks everyone for the support

you can catch that error in the Screen.ErrorOccurred event and if you get that error, then you know that the connection is broken
you can't know before sending something if it goes through successfully or not

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Thanks! It's running!