Commit 9b84e999 authored by Eric Duminil's avatar Eric Duminil
Browse files

Doc

parent d016d7cd
Pipeline #5988 failed with stage
in 22 seconds
...@@ -4,7 +4,43 @@ ...@@ -4,7 +4,43 @@
* This example is a modified IotWebConf01Minimal.ino, with added shell commands. * This example is a modified IotWebConf01Minimal.ino, with added shell commands.
* *
* Simply type "help" via Serial in order to see the available commands: * Simply type "help" via Serial in order to see the available commands:
*
> help
'help' not supported. Available commands :
ap 0/1 (Enables/disables access point).
ap_pwd abc (Sets AP password to abc).
name abc (Sets ThingName to abc).
reset (Restarts the ESP).
reset_config (Resets the complete IotWeb config).
save_config (Saves the config to EEPROM).
ssid name (Sets SSID to name).
wifi 0/1 (Enables/disables WiFi).
wifi_pwd abc (Sets WiFi password to abc).
* The commands allow you to setup the thing directly via Serial:
> name my_thing
Calling : name('my_thing')
Setting Thing name to my_thing
> ssid my_wifi
Calling : ssid('my_wifi')
Setting WiFi ssid to my_wifi
> wifi_pwd my_wifi_password
Calling : wifi_pwd('my_wifi_password')
Setting WiFi password to my_wifi_password
> ap_pwd p4ssw0rd
Calling : ap_pwd('p4ssw0rd')
Setting AP password to p4ssw0rd
State changing from: 1 to 3
Connecting to [my_wifi] (password is hidden)
WiFi timeout (ms): 30000
State changed from: 1 to 3
...
...
* *
*/ */
...@@ -131,9 +167,9 @@ void setup() ...@@ -131,9 +167,9 @@ void setup()
void loop() void loop()
{ {
// -- doLoop should be called as frequently as possible.
iotWebConf.doLoop(); iotWebConf.doLoop();
shell::checkSerialInput(); shell::checkSerialInput();
delay(50);
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment