]> git.0d.be Git - PanikSwitch.git/commitdiff
add debug output for udp message
authorFrédéric Péters <fpeters@0d.be>
Wed, 24 Mar 2021 16:49:09 +0000 (17:49 +0100)
committerFrédéric Péters <fpeters@0d.be>
Thu, 25 Mar 2021 07:13:36 +0000 (08:13 +0100)
FINAL2013V2.ino

index 3e5dc6b93032194d8cf403c63fd161c1f2b44e1d..544548175e1087a7de32c4324c8ee52fb8cab707 100644 (file)
@@ -286,6 +286,10 @@ void loop()
         #ifdef ENABLE_UDP
         // notify over UDP
         snprintf(str_selection, 19, "{\"active\": %d}", activeSelection);
+        #ifdef SERIAL_DEBUG
+        Serial.println(F("Sending UDP... "));
+        Serial.println(str_selection);
+        #endif
         Udp.beginPacket(udp_remote_ip, 1312);
         Udp.write(str_selection);
         Udp.endPacket();