Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
39e7a31b
Commit
39e7a31b
authored
Feb 15, 2022
by
Eric Duminil
Browse files
AMPEL_PASSWORD instead of HTTP_PASSWORD
parent
b4b5658b
Pipeline
#5825
passed with stage
in 2 minutes and 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/config.public.h
View file @
39e7a31b
...
...
@@ -2,6 +2,9 @@
# define CONFIG_H_INCLUDED
// This file is a config template, and can be copied to config.h. Please don't save any important password in this template.
// NOTE: Every parameter can be modified and saved later via the web-config.
// Some of those parameters can also be modified via commands in the Serial monitor :
// e.g. 'wifi 0' to turn WiFi off, or 'csv 60' to log data in csv every minute.
/**
* SERVICES
...
...
@@ -68,13 +71,14 @@
# define LED_COUNT 12
/**
* WEB SERVER
* available at http://local_ip, with user HTTP_USER and password HTTP_PASSWORD
* AMPEL PASSWORD
* will be used for Access Point (without username), and for web-server available at http://local_ip
* with user 'admin', without quotes.
*/
//
Define empty strings in order to disable authentication, or remove the constants altogether
.
# define HTTP_USER "co2ampel"
# define
HTTP
_PASSWORD "
my_password
"
//
If left empty, the password will be set during the first configuration, via access point
.
// In order to be set successfully, it should have at least 8 characters.
# define
AMPEL
_PASSWORD ""
/**
* MQTT
...
...
ampel-firmware/web_config.cpp
View file @
39e7a31b
...
...
@@ -179,7 +179,7 @@ namespace web_config {
}
void
initialize
()
{
iotWebConf
=
new
IotWebConf
(
ampel
.
sensorId
,
&
dnsServer
,
&
http
,
HTTP
_PASSWORD
,
config_version
);
iotWebConf
=
new
IotWebConf
(
ampel
.
sensorId
,
&
dnsServer
,
&
http
,
AMPEL
_PASSWORD
,
config_version
);
iotWebConf
->
setHtmlFormatProvider
(
&
optionalGroupHtmlFormatProvider
);
...
...
@@ -340,10 +340,6 @@ namespace config {
bool
&
mqtt_encryption
=
web_config
::
mqttEncryptionParam
.
value
();
bool
&
allow_mqtt_commands
=
web_config
::
mqttCommandsParam
.
value
();
// HTTP
// const char *http_user = IOTWEBCONF_ADMIN_USER_NAME; // "admin" by default
// char *http_password = web_config::iotWebConf->getApPasswordParameter()->valueBuffer;
// LORAWAN
#if defined(ESP32)
bool
is_lorawan_active
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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