{{#global}}
#include <WiFiUdp.h>
WiFiUDP udp;
unsigned int localPort = 2000; // local port to listen for UDP packets
IPAddress ServerIP(192, 168, 4, 1);
IPAddress ClientIP(192, 168, 4, 2);
{{/global}}
{{ GENERATED_CODE }}
void evaluate(Context ctx) {
if(isInputDirty<input_IN>(ctx)){
udp.begin(localPort);
Serial.print("Start UDP");
}
}