This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:iot-open:practical:hardware:sut:esp32:iot_5 [2024/04/28 20:34] – [FAQ] pczekalski | en:iot-open:practical:hardware:sut:esp32:iot_5 [2024/05/01 13:28] (current) – [Start] pczekalski | ||
---|---|---|---|
Line 47: | Line 47: | ||
Implement the code to display on the selected device.\\ | Implement the code to display on the selected device.\\ | ||
Connect to the WiFi in the STA mode (as a client) and ensure the connection is OK and you got an IP from the DHCP server.\\ | Connect to the WiFi in the STA mode (as a client) and ensure the connection is OK and you got an IP from the DHCP server.\\ | ||
+ | It is essential to note and present (using a display of your choice) the node's IP address, as you will later need to refer to it with a client to use your service. | ||
=== Step 2 === | === Step 2 === | ||
Line 54: | Line 55: | ||
#include < | #include < | ||
</ | </ | ||
+ | WiFi UDP is part of the Arduino for the ESP32 framework, so you do not need to add it explicitly to the '' | ||
=== Step 3 === | === Step 3 === | ||
Line 62: | Line 64: | ||
=== Step 4 === | === Step 4 === | ||
- | Declate | + | Declare |
<code c> | <code c> | ||
WiFiUDP udp; //UDP Communication class | WiFiUDP udp; //UDP Communication class |