You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.
Hi all,
I am trying to use Mosca to show the payload in the messages of server, but the server doesn't show the payload in the event published.
The code is as follows:
server.js:
Hi all,
I am trying to use Mosca to show the payload in the messages of server, but the server doesn't show the
payload
in the eventpublished
.The code is as follows:
server.js:
utils.js: Transform payload in a JavaScript object
mqtt cli
$mqtt pub -t 'agent/message' -m 'hello'
sever output:
published
event without switch statementserver.js:
server output:
The text was updated successfully, but these errors were encountered: