Wemos D1 mini loses sketch after reconnect

Sorry I had a condition! :face_with_raised_eyebrow:

Esp is ver 2.0.0

Yup… time to upgrade :stuck_out_tongue_winking_eye: Prefered version is 2.4.0… if you can’t see it as an option in your IDE, then make sure you have this in your IDE preferances: File -> Preferances

http://arduino.esp8266.com/stable/package_esp8266com_index.json

Then go back into the boards manager and update.