Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Käppler
ampel-firmware
Commits
b513c251
Commit
b513c251
authored
Apr 14, 2021
by
Eric Duminil
Browse files
TODOs
parent
7981d192
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/mqtt.cpp
View file @
b513c251
...
...
@@ -55,6 +55,7 @@ namespace mqtt {
}
}
//TODO: Move all those setters to a separate class, which could be used by Serial/MQTT/WebServer
void
setTimer
(
String
messageString
)
{
messageString
.
replace
(
"timer "
,
""
);
int
timestep
=
messageString
.
toInt
();
...
...
@@ -141,6 +142,8 @@ namespace mqtt {
}
Serial
.
println
(
"'."
);
//TODO: Move this logic to a separate class, which could be used by Serial/MQTT/WebServer
if
(
messageString
.
startsWith
(
"co2 "
))
{
setCO2forDebugging
(
messageString
);
}
else
if
(
messageString
.
startsWith
(
"timer "
))
{
...
...
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