LoRaWAN-Signal-Mapping/server/ttn-app-server/MessageHandler.mjs

18 lines
300 B
JavaScript

"use strict";
import { decode_payload } from './DecodePayload.mjs';
class MessageHandler {
constructor() {
}
async handle(message) {
console.log(message);
let decoded_payload = decode_payload(message.payload_raw);
console.log(decoded_payload);
}
}
export default MessageHandler;