UDP Client+Server example
Posted: Sun Apr 12, 2015 7:15 am
Now that the bug in the UDP library is fixed (ref http://www.esp8266.com/viewtopic.php?f=29&t=2390) here's a basic working sketch for bidirectional UDP communication. The ESP displays the content of the received packet in the Serial Monitor and sends a confirmation message back to the UDP sender.
Below you will find:
- screen dump, upper part = Serial Monitor ESP, lower part is from Mac OS using netcat/nc as counterpart for the ESP.
- the example sketch
Below you will find:
- screen dump, upper part = Serial Monitor ESP, lower part is from Mac OS using netcat/nc as counterpart for the ESP.
- the example sketch