Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
dcdb
dcdb
Commits
d9b6a272
Commit
d9b6a272
authored
Sep 12, 2017
by
Michael Ott
Browse files
Fix parsing of MQTT messages that don't contain a timestamp
parent
2530f7e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
CollectAgent/collectagent.cpp
View file @
d9b6a272
...
...
@@ -135,7 +135,7 @@ void mqttCallback(SimpleMQTTMessage *msg)
payload
=
&
buf
;
payload
->
value
=
*
((
uint64_t
*
)
msg
->
getPayload
());
payload
->
timestamp
=
Messaging
::
calculateTimestamp
();
len
=
2
;
len
=
sizeof
(
uint64_t
)
*
2
;
}
//...otherwise it just retrieves it from the MQTT message payload.
else
if
((
len
%
sizeof
(
mqttPayload
)
==
0
)
&&
(
len
>
0
)){
...
...
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