add MQTT button for updating time
This commit is contained in:
parent
52df4e31b2
commit
b426988c43
@ -63,6 +63,13 @@ namespace Devices {
|
|||||||
}
|
}
|
||||||
}).build()
|
}).build()
|
||||||
)
|
)
|
||||||
|
.addSecondary(
|
||||||
|
Builder<Button>::instance(new Button{"Update time", "update_time",
|
||||||
|
[](const char* msg) {
|
||||||
|
if (strcmp("PRESS", msg) == 0) Ntp::tUpdateTime.restart();
|
||||||
|
}
|
||||||
|
}).build()
|
||||||
|
)
|
||||||
.addSecondary(ledMqtt)
|
.addSecondary(ledMqtt)
|
||||||
.addConfiguration(brightnessMqtt)
|
.addConfiguration(brightnessMqtt)
|
||||||
.addConfiguration(hourFormatMqtt)
|
.addConfiguration(hourFormatMqtt)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user