some changes

This commit is contained in:
Dmitry Borisenko
2020-05-20 02:16:23 +02:00
parent 3ea2509b6d
commit bf75e9f4b7
11 changed files with 162 additions and 98 deletions

View File

@@ -1,3 +1,4 @@
#ifdef UDP_enable
void UDP_init() {
server.on("/udp", HTTP_GET, [](AsyncWebServerRequest * request) {
String value;
@@ -167,3 +168,11 @@ void send_mqtt_to_udp() {
}
}
}
void do_mqtt_send_settings_to_udp() {
if (mqtt_send_settings_to_udp) {
mqtt_send_settings_to_udp = false;
send_mqtt_to_udp();
}
}
#endif