jooby-codec
    Preparing search index...

    Namespace setSaldoParameters

    Downlink command to set device current saldo parameters information.

    Supported in MTX1 and MTX3 devices.

    import * as setSaldoParameters from 'jooby-codec/mtx1/commands/downlink/setSaldoParameters.js';

    const parameters = {
    coefficients: [2, 3, 4, 5],
    decimalPointTariff: 6,
    indicationThreshold: 7,
    relayThreshold: 8,
    mode: 9,
    saldoOffTimeBegin: 10,
    saldoOffTimeEnd: 11,
    decimalPointIndication: 12,
    powerThreshold: 13,
    creditThreshold: 14
    };
    const bytes = setSaldoParameters.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [47, 37, 0, 0, 0, 2, 0, 0, 0, 3, 0, 0, 0, 4, 0, 0, 0, 5, 6, 0, 0, 0, 7, 0, 0, 0, 8, 9, 10, 11, 12, 0, 0, 0, 13, 0, 0, 0, 14]

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes