Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit a5f3c43

Browse files
committed
Add reference to WiFi fix for older versions of Espressif library
1 parent 44fd306 commit a5f3c43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/Esp32-lwmqtt/esp32-mqtt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ void setupWifi() {
5656
Serial.println("Starting wifi");
5757

5858
WiFi.mode(WIFI_STA);
59+
// WiFi.setSleep(false); // May help with disconnect? Seems to have been removed from WiFi
5960
WiFi.begin(ssid, password);
6061
Serial.println("Connecting to WiFi");
6162
while (WiFi.status() != WL_CONNECTED) {

0 commit comments

Comments
 (0)