add MQTT button for updating time
This commit is contained in:
parent
52df4e31b2
commit
b426988c43
@ -63,6 +63,13 @@ namespace Devices {
|
||||
}
|
||||
}).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)
|
||||
.addConfiguration(brightnessMqtt)
|
||||
.addConfiguration(hourFormatMqtt)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user