jooby-codec
    Preparing search index...

    Namespace getSaldo

    Uplink command to get device current saldo information.

    The corresponding downlink command: getSaldo.

    Supported in MTX1 and MTX3 devices.

    import * as getSaldo from 'jooby-codec/mtx1/commands/uplink/getSaldo.js';

    // response to getSaldo downlink command
    const bytes = [
    0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00,
    0x00, 0x04, 0x00, 0x00, 0x00, 0x05, 0x00, 0x00, 0x00, 0x07, 0x09, 0x17, 0x06, 0x23
    ];

    // decoded payload
    const parameters = getSaldo.fromBytes(bytes);

    console.log(parameters);
    // output:
    {
    currentSaldo: 1,
    count: 0,
    energy: [2, 3, 4, 5],
    beginSaldoOfPeriod: 7,
    date: {
    month: 9,
    date: 23,
    hours: 6,
    minutes: 35
    }
    }

    Command format documentation

    Interfaces

    IGetSaldoResponseParameters

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes