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
b9002c70
Commit
b9002c70
authored
Feb 09, 2022
by
Eric Duminil
Browse files
Info
parent
78d53f38
Changes
1
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/mqtt.cpp
View file @
b9002c70
...
...
@@ -144,16 +144,15 @@ namespace mqtt {
"Connection lost"
,
"Connection failed"
,
"Disconnected"
,
"Connected
!
"
,
// 0
"Connected"
,
// 0
"Bad protocol"
,
"Bad client ID"
,
"Unavailable"
,
"Bad credentials"
,
"Unauthorized"
};
// 5
last_failed_at
=
seconds
();
Serial
.
print
(
F
(
" Failed! "
));
Serial
.
print
(
mqtt_statuses
[
mqttClient
.
state
()
+
4
]);
Serial
.
print
(
" (Code="
);
Serial
.
print
(
"
!
(Code="
);
Serial
.
print
(
mqttClient
.
state
());
Serial
.
print
(
F
(
"). Will try again in "
));
Serial
.
print
(
config
::
wait_after_fail
);
...
...
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