Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
9b84e999
Commit
9b84e999
authored
Mar 05, 2022
by
Eric Duminil
Browse files
Doc
parent
d016d7cd
Pipeline
#5988
failed with stage
in 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/ampel-firmware.ino
View file @
9b84e999
...
...
@@ -4,7 +4,43 @@
* This example is a modified IotWebConf01Minimal.ino, with added shell 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()
void
loop
()
{
// -- doLoop should be called as frequently as possible.
iotWebConf
.
doLoop
();
shell
::
checkSerialInput
();
delay
(
50
);
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment