BLE with ESP32. The app crashes when ESP32 is turned off

Solved.
Using “registertfloats” instead “readfloats” the app do not crash when the connection with device is lost.
I had to modify a bit the ESP32 software, but now it works perfectly.
Thanks!!!