Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:iot-open:practical:hardware:sut:esp32:iot_2 [2024/04/20 08:19] – ToDo checked: Finish IOT2 scenario pczekalskien:iot-open:practical:hardware:sut:esp32:iot_2 [2024/04/21 11:39] (current) pczekalski
Line 1: Line 1:
-<todo @pczekalski #pczekalski:2024-04-20>Finish IOT2 scenario</todo> 
 ====== IOT2: Reading IP address of the WiFi ===== ====== IOT2: Reading IP address of the WiFi =====
 On the networking level, IP devices are identified by MAC. In the case of our laboratory and network, you will obtain the IP address from the DHCP server integrated with the WiFi access point. To connect to the WiFi network, one needs to use credentials that are present in the general laboratory description, available here:  On the networking level, IP devices are identified by MAC. In the case of our laboratory and network, you will obtain the IP address from the DHCP server integrated with the WiFi access point. To connect to the WiFi network, one needs to use credentials that are present in the general laboratory description, available here: 
Line 22: Line 21:
  
 ==== Task to be implemented ==== ==== Task to be implemented ====
-Connect to the "internal IoT" WiFI access point. Present the obtained IP address on the selected display. Handle critical situations such as no access and present an appropriate message on the screen (e.g. error message). The steps below present only the reading part, not a display. Handling a display is presented in the EMBx scenarios, as listed above.+Connect to the "internal IoT" WiFI access point. Present the obtained IP address on the selected display. Handle critical situations such as no access and present an appropriate message on the screen (e.g., an error message). The steps below present only the reading part, not a display. Handling a display is presented in the EMBx scenarios, as listed above.
  
 ==== Start ==== ==== Start ====
-Check if you can see a full display (of your choice) in your video stream clearly. Book a device and create a dummy Arduino file with ''void setup()...'' and ''void loop()...''.+Check if you can clearly see a full display (of your choice) in your video stream. Book a device and create a dummy Arduino file with ''void setup()...'' and ''void loop()...''.
  
  
Line 73: Line 72:
    localIP = WiFi.localIP();    localIP = WiFi.localIP();
 </code> </code>
-The ''IPAddress'' class contains the ''toString()'' method that formats the IP and returns in standard, dot-separated, four-octet text format.+The ''IPAddress'' class contains the ''toString()'' method which formats the IP and returns in standard, dot-separated, four-octet text format.
  
 === Step 5 === === Step 5 ===
Line 89: Line 88:
  
 ===== FAQ ===== ===== FAQ =====
-**I set a hostname, but it does appear on the router level.**: There are many possible reasons; one is an active registration in the router (AP) that keeps an old IP address, so you need to wait until it expires; other reason is you have changed the hostname when you were connected to the AP.\\ +**I set a hostname, but it does appear on the router level.**: There are many possible reasons; one is an active registration in the router (AP) that keeps an old IP address, so you need to wait until it expires; another reason is you have changed the hostname when you were connected to the AP.\\ 
-**Can I use a manually configured IP?**: Actually, you can, but we strongly discourage it. This is because you may accidentally overlap this IP address with some other device, router, or other infrastructure, blocking its operation.+**Can I use a manually configured IP?**: Actually, you can, but we strongly discourage it. You may accidentally overlap this IP address with some other device, router, or infrastructure, blocking its operation.
  
 <WRAP noprint> <WRAP noprint>
en/iot-open/practical/hardware/sut/esp32/iot_2.1713601169.txt.gz · Last modified: 2024/04/20 08:19 by pczekalski
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0