Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
34cf4989
Commit
34cf4989
authored
4 years ago
by
Eric Duminil
Browse files
Options
Download
Email Patches
Plain Diff
Simpler code
parent
6baf3b30
master
develop
experimental/example_for_iotwebconf
senseair_s8
v0.3.0
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.0
archive/refactor/src_structure
archive/experimental/wifimanager
archive/experimental/simple
archive/experimental/save_lora_session
archive/experimental/save_config
archive/experimental/ota
archive/experimental/binary_clock
archive/experimental/autoconnect
archive/dev/debugcalib
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ampel-firmware/mqtt.cpp
+5
-8
ampel-firmware/mqtt.cpp
with
5 additions
and
8 deletions
+5
-8
ampel-firmware/mqtt.cpp
+
5
-
8
View file @
34cf4989
...
@@ -73,16 +73,13 @@ namespace mqtt {
...
@@ -73,16 +73,13 @@ namespace mqtt {
}
}
led_effects
::
onBoardLEDOn
();
led_effects
::
onBoardLEDOn
();
Serial
.
print
(
F
(
"Message arrived on topic: "
));
Serial
.
print
(
F
(
"Message arrived on topic: "
));
Serial
.
print
(
sub_topic
);
Serial
.
println
(
sub_topic
);
Serial
.
print
(
F
(
". Message: '"
));
char
command
[
length
+
1
];
String
messageString
;
for
(
unsigned
int
i
=
0
;
i
<
length
;
i
++
)
{
for
(
unsigned
int
i
=
0
;
i
<
length
;
i
++
)
{
Serial
.
print
((
char
)
message
[
i
]);
command
[
i
]
=
message
[
i
];
messageString
+=
(
char
)
message
[
i
];
}
}
Serial
.
println
(
"'."
);
command
[
length
]
=
0
;
sensor_commands
::
run
(
messageString
.
c_str
());
sensor_commands
::
run
(
command
);
delay
(
50
);
led_effects
::
onBoardLEDOff
();
led_effects
::
onBoardLEDOff
();
}
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets