update time from NTP
This commit is contained in:
parent
553eae0566
commit
980687b154
1 changed files with 5 additions and 0 deletions
|
|
@ -93,6 +93,10 @@ void handleMqttMessage(char *topic, char *payload)
|
|||
{
|
||||
// Unused for now
|
||||
}
|
||||
void subscribeToIoTCallbacks()
|
||||
{
|
||||
espmega.updateTimeFromNTP();
|
||||
}
|
||||
|
||||
void setup()
|
||||
{
|
||||
|
|
@ -161,6 +165,7 @@ void setup()
|
|||
Serial.print("boot_state.txt=\"MQTT Initializing . . .\"");
|
||||
sendStopBytes();
|
||||
espmega.iot->loadMqttConfig();
|
||||
espmega.iot->registerSubscribeCallback(&subscribeToIoTCallbacks);
|
||||
espmega.iot->connectToMqtt();
|
||||
Serial.print("boot_state.txt=\"Display Initializing . . .\"");
|
||||
espmega.enableWebServer(80);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue