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.81k stars 1.38k forks source link

ESP32 manage wifi myself (CODE UPDATE) Like: blynk.begin(auth) #470

Closed ajaybnl closed 4 years ago

ajaybnl commented 4 years ago

Add the code to BlynkSimpleESP32.h :

void begin(const char* auth) { //connectWiFi(ssid, pass); config(auth, BLYNK_DEFAULT_DOMAIN, BLYNK_DEFAULT_PORT); while(this->connect() != true) {} }

This will let you control the wifi youtself. (Without Generating Error in Debug)

vshymanskyy commented 4 years ago

You should use config() method directly from your sketch, instead of modifying the begin()