Skip to content

Conversation

@EarlVadim
Copy link

Description

An example of sending data to the server using the Light Sleep mode.

Issues Resolved

[List any existing issues this PR resolves; include Fixes #xxx or Closes #xxx (where xxx is issue number)]

after long testing, I found out that after waking up from sleep, the connection to the access point can take up to 30 seconds or more. sometimes frozen.
modified the library so that it was possible to limit the time of attempts to establish a connection and their number, in order to be able to somehow fork the connection script.

Description
Add 2 functions connectWiFi_t and begin_t

Usage example

int conB_count = 5;
while ((!Blynk.begin_t(auth, ssid, pass, IPAddress(172,18,0,100), 8080, 30000)) && (conB_count>0))  --conB_count;
if (WiFi.status() != WL_CONNECTED) ESP.restart();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant