Pass message on to message handler
This commit is contained in:
parent
380f984253
commit
d65f512003
2 changed files with 6 additions and 3 deletions
|
@ -7,8 +7,11 @@ class MessageHandler {
|
|||
|
||||
}
|
||||
|
||||
async handle(payload) {
|
||||
console.log(arguments);
|
||||
async handle(message) {
|
||||
console.log(message);
|
||||
|
||||
let decoded_payload = decode_payload(message.payload_raw);
|
||||
console.log(decoded_payload);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ class TTNAppServer {
|
|||
}
|
||||
|
||||
this.log.log(`[mqtt/handler] ${topic}: `, message_object);
|
||||
// await this.message_handler.handle(payload);
|
||||
await this.message_handler.handle(message_object);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue