update TTN paxcounter codes sources
This commit is contained in:
parent
758d84b472
commit
35cdde46fa
@ -35,10 +35,10 @@ uplinkDecoder:
|
|||||||
- description: Device config data
|
- description: Device config data
|
||||||
input:
|
input:
|
||||||
fPort: 3
|
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:
|
output:
|
||||||
data:
|
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
|
port: 3
|
||||||
loradr: 9
|
loradr: 9
|
||||||
txpower: 15
|
txpower: 15
|
||||||
@ -46,7 +46,7 @@ uplinkDecoder:
|
|||||||
sendcycle: 120
|
sendcycle: 120
|
||||||
wifichancycle: 50
|
wifichancycle: 50
|
||||||
blescantime: 10
|
blescantime: 10
|
||||||
rgblum: 30
|
sleepcycle: 0
|
||||||
flags:
|
flags:
|
||||||
adr: 0
|
adr: 0
|
||||||
antenna: 0
|
antenna: 0
|
||||||
|
@ -53,7 +53,7 @@ function decodeUplink(input) {
|
|||||||
|
|
||||||
if (input.fPort === 3) {
|
if (input.fPort === 3) {
|
||||||
// device config data
|
// 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) {
|
if (input.fPort === 4) {
|
||||||
|
Loading…
Reference in New Issue
Block a user