From 7d116cfe95d74124e5acbd8df794c21454ceb7c4 Mon Sep 17 00:00:00 2001 From: cheetah Date: Wed, 21 Dec 2022 02:10:03 +0100 Subject: [PATCH] less log for lorawan traffic --- types/connectors/LoRaWANConnector.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/types/connectors/LoRaWANConnector.js b/types/connectors/LoRaWANConnector.js index ddfe023..8fe6039 100644 --- a/types/connectors/LoRaWANConnector.js +++ b/types/connectors/LoRaWANConnector.js @@ -56,7 +56,6 @@ class LoRaWANConnector extends Connector { async onMQTTMessage(topic, message) { //if (topic.indexOf('/up') > -1) return const json = JSON.parse(Buffer.from(message).toString('utf-8')) - console.log(topic) if (!!json.uplink_message) { // TTN v3 this.connectorRegistry.events.emit('response', { ...json.uplink_message.decoded_payload, @@ -66,15 +65,6 @@ class LoRaWANConnector extends Connector { metadata: json, }) } - if (!!json.app_id && json.app_id == config.connectors.lorawan.username) { // TTN v2 - this.connectorRegistry.events.emit('response', { - ...json.payload_fields, - port: json.port, - date: new Date(json.metadata.time), - device_id: json.dev_id, - metadata: json, - }) - } } } module.exports = LoRaWANConnector \ No newline at end of file