User manual

ing this simple line, you can also send data to the module. You can also listen at the
same port to which you are sending. You can therefore also enter 90 for both ports.
Theoretically, the change also permits the module to receive its own data.
2.3 | Switching an LED by UDP
The program P06_UDPLED.ino now finally is about controlling hardware with the
UDP. In this program, an LED can be switched on and off with simple commands.
Another setting is also made to the UDP communication, which permits the hard-
ware to be controlled from several computers at once. For this, you need a circuit as
the figure below shows. The LED looks very similar to another part, the photo tran-
sistor. You can distinguish the two parts by looking
at the head of the part from above. The inside of
the LED has a large, white area.
The Packet Sender has successfully submitted »Hi«.
The program
While the prior example programs required many inputs by the user via the serial
monitor, this program is to work autonomously. Nevertheless, information will still
be output via the serial monitor for debugging purposes.
The controller will wait for data received from the WLAN module that are an-
nounced by the +IPD message. Legitimate commands that you can send via the
Packet Sender are led1 and led0. The controller interprets them and switches the
Required parts
1 x pinboard, 1 x NanoESP, 1 x LED (red), 1 x resistor
1 kOhm (brown-black-red), circuit wire