Skip to content
Closed
Prev Previous commit
Next Next commit
Add files via upload
  • Loading branch information
holgerlembke authored Nov 22, 2016
commit 5f4198fcc733c78d54651d0ee9f9ba093ce0664b
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,30 @@ public void terminate()
2\nA:B
2\nC:D
2\nE:F



Basic example:
==============

call this in loop():

void PostMyself(void) {
static unsigned long ticker = 0;

if (millis() - ticker > 15000) {
IPAddress broadcastIp(WiFi.localIP() | ( ~WiFi.subnetMask()));

WiFiUDP udp;
udp.begin(8765);
udp.beginPacket(broadcastIp, 8531);
udp.print("1\nesp8266 " + initmsg1 + "\n8266\n");
udp.endPacket();
delay(1);

ticker = millis();
}
}


*/