Browse Source
update review suggestions
Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
tarun7singh/master
Tarun Singh
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
server/util-server.js
|
|
@ -96,8 +96,7 @@ exports.mqttAsync = function (hostname, topic, okMessage) { |
|
|
|
let client = mqtt.connect(hostname); |
|
|
|
client.on("connect", () => { |
|
|
|
client.subscribe(topic); |
|
|
|
} |
|
|
|
); |
|
|
|
}); |
|
|
|
client.on("message", (messageTopic, message) => { |
|
|
|
console.log(messageTopic); |
|
|
|
if (messageTopic == topic && message.toString() !== okMessage) { |
|
|
|