update TTN paxcounter codes sources
This commit is contained in:
parent
758d84b472
commit
35cdde46fa
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user