template sketch for wifi communication to Arduino
the wifi is provided with nodeMcu (ESP8266 MCU)
The nodeMcu transmits msg to Arduino through a serial com
In this apparatus:
. the message comes from a PC, with processing. It sends message as UDP packet to nodeMcu.
. nodeMcu and PC are connected to same WAN (provided with external router).
. nodeMcu receives messages, it lights up some LED, then it sends a message to arduino Uno through a serial communication.
. the arduino Uno lights up some Leds and responds to nodeMcu through serial.
. the nodeMcu sends back to PC through wifi, it sends UDP packets.
On PC we use 2 Processing sketches (and windows) to send message and to receive message.
The sketches are available on github : https://github.com/ClementINSA/Commun...