Pass message on to message handler

This commit is contained in:
Starbeamrainbowlabs 2019-07-09 13:14:25 +01:00
parent 380f984253
commit d65f512003
2 changed files with 6 additions and 3 deletions

View file

@ -7,8 +7,11 @@ class MessageHandler {
} }
async handle(payload) { async handle(message) {
console.log(arguments); console.log(message);
let decoded_payload = decode_payload(message.payload_raw);
console.log(decoded_payload);
} }
} }

View file

@ -66,7 +66,7 @@ class TTNAppServer {
} }
this.log.log(`[mqtt/handler] ${topic}: `, message_object); this.log.log(`[mqtt/handler] ${topic}: `, message_object);
// await this.message_handler.handle(payload); await this.message_handler.handle(message_object);
} }
} }