Revert "fix issue wrong Payload in TTNv3 #844"
This reverts commit 03e79267f8
.
This commit is contained in:
parent
d887793355
commit
c810fe6833
@ -45,7 +45,7 @@ function Decoder(bytes, port) {
|
|||||||
|
|
||||||
if (port === 3) {
|
if (port === 3) {
|
||||||
// device config data
|
// device config data
|
||||||
return decode(bytes, [uint8, uint8, int16, uint8, uint8, uint8, uint8, bitmap2, version], ['loradr', 'txpower', 'rssilimit', 'sendcycle', 'wifichancycle', 'blescantime', 'rgblum', 'payloadmask', 'version']);
|
return decode(bytes, [uint8, uint8, int16, uint8, uint8, uint8, uint8, bitmap1, bitmap2, version], ['loradr', 'txpower', 'rssilimit', 'sendcycle', 'wifichancycle', 'blescantime', 'rgblum', 'flags', 'payloadmask', 'version']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (port === 4) {
|
if (port === 4) {
|
||||||
|
@ -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, bitmap2, version], ['loradr', 'txpower', 'rssilimit', 'sendcycle', 'wifichancycle', 'blescantime', 'rgblum', 'payloadmask', 'version']);
|
data = decode(input.bytes, [uint8, uint8, int16, uint8, uint8, uint8, uint8, bitmap1, bitmap2, version], ['loradr', 'txpower', 'rssilimit', 'sendcycle', 'wifichancycle', 'blescantime', 'rgblum', 'flags', 'payloadmask', 'version']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input.fPort === 4) {
|
if (input.fPort === 4) {
|
||||||
|
Loading…
Reference in New Issue
Block a user