udp-start

maks971014/esp8266-ap/udp-start

No description
udp-start
@/udp-start
INpulse
udp-start
IN
To use the node in your project you should have the maks971014/esp8266-ap library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

{{#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");
    }
}