From 35cdde46fa9d15e2c93c6f6f754919e02705031a Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Sat, 26 Nov 2022 22:58:10 +0100 Subject: [PATCH] update TTN paxcounter codes sources --- .../vendor/opensource/esp32-paxcounter-codec.yaml | 6 +++--- .../vendor/opensource/esp32-paxcounter-packed.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lorawan-devices-repo/vendor/opensource/esp32-paxcounter-codec.yaml b/src/lorawan-devices-repo/vendor/opensource/esp32-paxcounter-codec.yaml index cc59f7c1..5ce463a2 100644 --- a/src/lorawan-devices-repo/vendor/opensource/esp32-paxcounter-codec.yaml +++ b/src/lorawan-devices-repo/vendor/opensource/esp32-paxcounter-codec.yaml @@ -35,10 +35,10 @@ uplinkDecoder: - description: Device config data input: fPort: 3 - bytes: [0x09, 0x0F, 0x00, 0x00, 0x78, 0x32, 0x0A, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00] + bytes: [0x09, 0x0F, 0x00, 0x00, 0x78, 0x32, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00] output: data: - bytes: [0x09, 0x0F, 0x00, 0x00, 0x78, 0x32, 0x0A, 0x1E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00] + bytes: [0x09, 0x0F, 0x00, 0x00, 0x78, 0x32, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00] port: 3 loradr: 9 txpower: 15 @@ -46,7 +46,7 @@ uplinkDecoder: sendcycle: 120 wifichancycle: 50 blescantime: 10 - rgblum: 30 + sleepcycle: 0 flags: adr: 0 antenna: 0 diff --git a/src/lorawan-devices-repo/vendor/opensource/esp32-paxcounter-packed.js b/src/lorawan-devices-repo/vendor/opensource/esp32-paxcounter-packed.js index b9fc15a1..83b76cf7 100644 --- a/src/lorawan-devices-repo/vendor/opensource/esp32-paxcounter-packed.js +++ b/src/lorawan-devices-repo/vendor/opensource/esp32-paxcounter-packed.js @@ -53,7 +53,7 @@ function decodeUplink(input) { if (input.fPort === 3) { // device config data - data = decode(input.bytes, [uint8, uint8, int16, uint8, uint8, uint8, uint8, bitmap1, bitmap2, version], ['loradr', 'txpower', 'rssilimit', 'sendcycle', 'wifichancycle', 'blescantime', 'rgblum', 'flags', 'payloadmask', 'version']); + data = decode(input.bytes, [uint8, uint8, int16, uint8, uint8, uint8, uint16, bitmap1, bitmap2, version], ['loradr', 'txpower', 'rssilimit', 'sendcycle', 'wifichancycle', 'blescantime', 'sleepcycle', 'flags', 'payloadmask', 'version']); } if (input.fPort === 4) {