ESP32 disconnected

Are you using the 2.17 thinger.io library?

Connection issues have been reported with ESP8266, with the same 25202 code you indicated. See the post Arduino Library 2.17.0