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:stm32:iot_2 [2024/04/26 10:16] – [Steps] ktokarz | en:iot-open:practical:hardware:sut:stm32:iot_2 [2024/04/27 08:15] (current) – [Result validation] ktokarz | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== STM_IoT_2: Connecting to the WiFi Access Point and presenting IP ===== | ====== STM_IoT_2: Connecting to the WiFi Access Point and presenting IP ===== | ||
- | Each computer connected to the Internet is identified with the IP address. IP abbreviation stands for Internet Protocol, which is responsilbe to transmit | + | Each computer connected to the Internet is identified with the IP address. IP abbreviation stands for Internet Protocol, which is responsible for transmitting |
\\ | \\ | ||
- | ESP32 chip gets the IP address from DHCP server after establishing the connection | + | The STM32WB55 SoC doesn' |
+ | \\ | ||
+ | ESP32 chip gets the IP address from the DHCP server after establishing the connection | ||
===== Prerequisites ===== | ===== Prerequisites ===== | ||
Line 21: | Line 23: | ||
==== Task to be implemented ==== | ==== Task to be implemented ==== | ||
- | Join the WiFi network. Present an IP address on the selected display. The commonly used format for IP addresses requires 15 characters, so LCD having 16 characters is sufficient to present the address. The steps below show the starting part of the software. How to implement the full software please refer to the previous scenarios: | + | Join the WiFi network. Present an IP address on the selected display. The commonly used format for IPv4 addresses requires 15 characters, so LCD having 16 characters is sufficient to present the address. The steps below show the starting part of the software. How to implement the full software please refer to the previous scenarios: |
* [[en: | * [[en: | ||
* [[en: | * [[en: | ||
< | < | ||
- | The IP addresses are usually expressed as four decimal numbers ranging from 0 to 255 separated by dots eg. " | + | The IPv4 addresses are usually expressed as four decimal numbers ranging from 0 to 255 separated by dots eg. " |
</ | </ | ||
==== Start ==== | ==== Start ==== | ||
Line 74: | Line 76: | ||
Texts sent as part of the message are delimited with double quotation marks. In C++ we need to mark them with backslash characters inside the string constants. Examples above include these markings. | Texts sent as part of the message are delimited with double quotation marks. In C++ we need to mark them with backslash characters inside the string constants. Examples above include these markings. | ||
</ | </ | ||
+ | Some explanation can be needed for the " | ||
+ | If we don't use the " | ||
+ | If we don't use the " | ||
=== Step 3 === | === Step 3 === | ||
Line 92: | Line 97: | ||
</ | </ | ||
==== Result validation ==== | ==== Result validation ==== | ||
- | You should be able to see the MAC address of the ESP32-C3 module. | + | You should be able to see the IP address of the ESP32-C3 module. |
< | < | ||
- | Using another node should | + | Using another node ar even the same node another time can change the IP read. You can book another device and discover its IP. |
+ | </ | ||
+ | <note info> | ||
+ | Because LCD can't properly display some non-visible characters the presented code sometimes shows additional, non-letter characters. It is out of the scope of this scenario to filter these characters out. We leave the task of making visual improvements to your invention. | ||
</ | </ | ||
===== FAQ ===== | ===== FAQ ===== | ||
- | **Can I change | + | **Can I change |
<WRAP noprint> | <WRAP noprint> |