Update testing.ttnv2.js

master
cheetah 4 years ago
parent 622fb264da
commit a132f62437

@ -23,7 +23,17 @@ function Decoder(bytes, port) {
} }
break; break;
case 3: // Status & Canned Messages case 3: // Status & Canned Messages
// Canned Message '01' --- '05', single Hex Number, incrementing
// Status '<StatusIncrID>|Z|' or if no CenterSelection '<StatusIncrID>00'
if (bytes.length == 1) {
data.type = 'cannedMessage'
data.cannedMessage = bytes[0] * 1
} else {
data.type = 'status'
data.status = bytes[0] * 1
data.selection = bytes[1] * 2
}
break; break;
case 4: // Battery and Power Notifications case 4: // Battery and Power Notifications
// Startup 'FF' // Startup 'FF'

Loading…
Cancel
Save