Skip to content

Commit

Permalink
Fix NTP time in #34
Browse files Browse the repository at this point in the history
  • Loading branch information
dzungpv authored Aug 28, 2024
1 parent 6e28e31 commit 5de4313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3171,7 +3171,7 @@ void WiFiEvent(WiFiEvent_t event)
digitalWrite(blueLedPin, LOW);
xTimerStart(mqttReconnectTimer, 0); // start timer to connect to MQTT
// init and get the time
configTime(gmtOffset_sec, daylightOffset_sec, ntpServer);
configTime(gmtOffset_sec, daylightOffset_sec, ntpServer.c_str());
}
}
else if (event == ARDUINO_EVENT_WIFI_STA_DISCONNECTED)
Expand Down

0 comments on commit 5de4313

Please sign in to comment.