blynkkk / blynk-library

Blynk library for IoT boards. Works with Arduino, ESP32, ESP8266, Raspberry Pi, Particle, ARM Mbed, etc.
https://blynk.io
MIT License
3.83k stars 1.38k forks source link

Do not force WiFi Connect if already connected #400

Closed kamilosxd678 closed 6 years ago

kamilosxd678 commented 6 years ago

Do not force WiFi Connect if already connected, as WiFi.begin() is likely to get stucked.

Description

If ESP8266 is already connected, WiFi.begin() will get stuck. I was doing a sketch with WebUpdate and I was really missing that, because Blynk killed entire device on mode change (because WiFi has been previously connected in WebUpload mode)

Issues Resolved

I don't think there is any