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:remotelab:sut:generalpurpose2:u1 [2019/08/03 18:04] pczekalskien:iot-open:remotelab:sut:generalpurpose2:u1 [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 26: Line 26:
 <code c> <code c>
 #include <Arduino.h> #include <Arduino.h>
-#include <ittiot.h> 
 #include <ESP8266WiFi.h> #include <ESP8266WiFi.h>
 #include <LiquidCrystal_I2C.h> #include <LiquidCrystal_I2C.h>
Line 48: Line 47:
 </code> </code>
 <note important>''delay(10)'' is necessary to give it a breath before you ask it to connect to the web - wifi interface itself boots slower than rest of the ESP8266 because of radio physics.</note> <note important>''delay(10)'' is necessary to give it a breath before you ask it to connect to the web - wifi interface itself boots slower than rest of the ESP8266 because of radio physics.</note>
-<note tip>''n=0'' is an iterator here - you will use it to show number of attempts - you should usually succeed in one or couple. If attempts start ticking up, look for the code mistakes and check your SSID and passphrase.</note>+<note tip>''n=0'' is an iterator here - you will use it to show number of attempts - you should usually succeed in one or couple. If attempts start ticking up, look for the code mistakes and check your SSID and passphrase.</note> 
 +<note warning>Please, explicitly use interface mode setting: ''WiFi.mode(WIFI_STA);''. See FAQ section for details.</note>
  
 == Step 4 == == Step 4 ==
Line 84: Line 84:
  
 === Result validation === === Result validation ===
-//Provide some result validation methodsfor self assesment.//+Run your code and observe LCD presenting information on connection progressIP and MAC addresses.
  
 === FAQ === === FAQ ===
-This section is to be extended as new questions appear. \\ +**Does IP address change over time?**: Yes. First of all, IP is given automatically by the DHCP server. There is no strict rule saying, your IP is always going to be the same. Second, IP address reservation is done for some period of time and then DHCP server may assign you other IP so it may change over runtime, not necessarily between restarts only.\\ 
-When using the printed version of this manualplease refer to the latest online version of this document to obtain the valid and up-to-date list of the FAQ. +**Does MAC address change**: No. It is a factory given one and should be unique worldwide. Anywayyou can programmatically change it - this technique is commonly used by hackers to mimic other devices.\\ 
-//Provide some FAQs in the following form:\\ +**Do I need to use ''WiFi.mode(WIFI_STA);''?**: Yes, please do. Theoretically, if consecutive compilations use STA (client to AP) mode of the ESP8266 wifi interface, your code may work without it. However, you never know if the previous user used STA or AP (or both)Your code may fail then if not explicitly stated! 
-**Question?**: Answer+
-//+
en/iot-open/remotelab/sut/generalpurpose2/u1.1564855440.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
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