Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
RIT_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박권수
2021-05-12 01:21:19 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
707c5bf947572093386fa87e06d6eb11047a75b6
707c5bf9
1 parent
c90beaae
style. code console sequence change
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
server/src/lib/MqttModule.js
server/src/lib/MqttModule.js
View file @
707c5bf
...
...
@@ -18,8 +18,8 @@ exports.mqttOn = async (hosting, func) => {
client
.
on
(
'message'
,
async
(
topic
,
message
,
packet
)
=>
{
const
result
=
await
func
(
topic
,
message
.
toString
());
this
.
mqttPublishMessage
(
client
,
result
);
console
.
log
(
'\x1b[1;32msubscribe : topic'
,
topic
,
'message : '
,
message
.
toString
(),
'\x1b[0m'
);
this
.
mqttPublishMessage
(
client
,
result
);
});
return
client
;
...
...
Please
register
or
login
to post a comment