jooby-codec
    Preparing search index...

    Namespace getSaldoParameters

    Uplink command to get device current saldo parameters information.

    The corresponding downlink command: getSaldoParameters.

    Supported in MTX1 and MTX3 devices.

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

    // response to getSaldoParameters downlink command
    const bytes = [
    0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00, 0x00, 0x04, 0x00, 0x00, 0x00, 0x05, 0x06, 0x00, 0x00,
    0x00, 0x07, 0x00, 0x00, 0x00, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x00, 0x00, 0x0e,
    ];

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

    console.log(parameters);
    // output:
    {
    coefficients: [2, 3, 4, 5],
    decimalPointTariff: 6,
    indicationThreshold: 7,
    relayThreshold: 8,
    mode: 9,
    saldoOffTimeBegin: 10,
    saldoOffTimeEnd: 11,
    decimalPointIndication: 12,
    powerThreshold: 13,
    creditThreshold: 14
    }

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes