The code is a mirror of the
Sample – Light an LED based on the arrival of a UDP datagramfrom Kolban's book on ESP8266, and can be seen here: https://github.com/NoumanSaleem/esp8266 ... ser_main.c
running a bash command of:
while true; do echo -n “foo” | nc -4u -w1 192.168.1.67 25867; sleep 2; done
I get the following output:
Listening for data
Received data!
Received data!
Received data!
Received data!
pm open phy_2,type:2 0 0
Received data!
Received data!
However, it stops after about ~20 seconds.