mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-18 09:21:57 +00:00
Added delay to make the ESP connect to the WiFi faster
This commit is contained in:
parent
33f3e0898c
commit
1d1a0cfba2
@ -114,6 +114,10 @@ void setupWiFi()
|
||||
// Connect to WiFi
|
||||
WiFi.begin(ap.config.ssid, ap.config.ssidPassword);
|
||||
|
||||
while (WiFi.status() != WL_CONNECTED) {
|
||||
delay(500);
|
||||
}
|
||||
|
||||
// Initialize WiFi and MQTT clients
|
||||
if (ap.config.isSecure())
|
||||
client = new WiFiClientSecure();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user