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
110a1a8a
Commit
110a1a8a
authored
Feb 12, 2022
by
Eric Duminil
Browse files
Rename
parent
11b36705
Pipeline
#5800
passed with stage
in 2 minutes and 25 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/ampel-firmware.ino
View file @
110a1a8a
...
...
@@ -84,7 +84,7 @@ void wifiConnected() {
void
wifiFailed
()
{
Serial
.
print
(
F
(
"WiFi - Could not connect to "
));
Serial
.
println
(
config
::
current
_ssid
());
//TODO: Rename
Serial
.
println
(
config
::
selected
_ssid
());
//TODO: Rename
led_effects
::
showKITTWheel
(
color
::
red
);
}
/*****************************************************************
...
...
ampel-firmware/mqtt.cpp
View file @
110a1a8a
...
...
@@ -201,7 +201,7 @@ namespace mqtt {
char
payload
[
75
];
// Should be enough for info json...
const
char
*
json_info_format
=
PSTR
(
"{
\"
local_ip
\"
:
\"
%s
\"
,
\"
ssid
\"
:
\"
%s
\"
}"
);
snprintf
(
payload
,
sizeof
(
payload
),
json_info_format
,
wifi
::
local_ip
,
config
::
current
_ssid
());
snprintf
(
payload
,
sizeof
(
payload
),
json_info_format
,
wifi
::
local_ip
,
config
::
selected
_ssid
());
mqttClient
.
publish
(
info_topic
,
payload
);
}
...
...
ampel-firmware/web_config.cpp
View file @
110a1a8a
...
...
@@ -286,7 +286,7 @@ namespace web_config {
*/
namespace
config
{
char
*
current
_ssid
()
{
char
*
selected
_ssid
()
{
return
web_config
::
iotWebConf
->
getWifiSsidParameter
()
->
valueBuffer
;
}
...
...
ampel-firmware/web_config.h
View file @
110a1a8a
...
...
@@ -10,7 +10,7 @@
#endif
namespace
config
{
char
*
current
_ssid
();
char
*
selected
_ssid
();
// Sensor
extern
uint16_t
&
measurement_timestep
;
// [s] Value between 2 and 1800 (range for SCD30 sensor).
extern
uint16_t
&
altitude_above_sea_level
;
// [m]
...
...
ampel-firmware/wifi_util.cpp
View file @
110a1a8a
...
...
@@ -41,7 +41,7 @@ namespace wifi {
Serial
.
print
(
F
(
"WiFi - Local IP : "
));
Serial
.
println
(
wifi
::
local_ip
);
Serial
.
print
(
F
(
"WiFi - SSID : "
));
Serial
.
println
(
config
::
current
_ssid
());
Serial
.
println
(
config
::
selected
_ssid
());
}
void
defineCommands
()
{
...
...
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