Sparkfun ESP32 Thing disconnects and connects frequently

My guess is that the ledcWrite function that you’re using to simulate Analog.write is a blocking function that’s causing Blynk to be starved of processor time, resulting in the disconnects.

Pete.