Device status event.
import * as status from 'jooby-codec/analog/commands/uplink/status.js';// status for GASI3const bytes = [0x02, 0x0a, 0x03, 0x01, 0xc5, 0x6d, 0xc2, 0x27, 0x32, 0x0e, 0x68, 0x22];// decoded payloadconst parameters = status.fromBytes(bytes);console.log(parameters);// output:{ software: {type: 2, version: 10}, hardware: {type: 3, version: 1}, data: { batteryVoltage: {underLowLoad: 3158, underHighLoad: 3522}, batteryInternalResistance: 10034, temperature: 14, remainingBatteryCapacity: 41, lastEventSequenceNumber: 34 }} Copy
import * as status from 'jooby-codec/analog/commands/uplink/status.js';// status for GASI3const bytes = [0x02, 0x0a, 0x03, 0x01, 0xc5, 0x6d, 0xc2, 0x27, 0x32, 0x0e, 0x68, 0x22];// decoded payloadconst parameters = status.fromBytes(bytes);console.log(parameters);// output:{ software: {type: 2, version: 10}, hardware: {type: 3, version: 1}, data: { batteryVoltage: {underLowLoad: 3158, underHighLoad: 3522}, batteryInternalResistance: 10034, temperature: 14, remainingBatteryCapacity: 41, lastEventSequenceNumber: 34 }}
Command format documentation
Device status event.
Example: create command instance from command body hex dump
Command format documentation