jooby-codec
    Preparing search index...

    Device status event.

    import * as status from 'jooby-codec/analog/commands/uplink/status.js';

    // status for GASI3
    const bytes = [0x02, 0x0a, 0x03, 0x01, 0xc5, 0x6d, 0xc2, 0x27, 0x32, 0x0e, 0x68, 0x22];

    // decoded payload
    const 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

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes