jooby-codec
    Preparing search index...

    Namespace setGsmParameters

    Downlink command to set GSM parameters.

    Supported in MTX1 and MTX3 devices.

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

    const parameters = {
    index: 0,
    data: [
    60, 174, 22, 0, 0, 0, 0, 2, 83, 84, 65, 84, 73, 67, 73,
    80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
    ]
    };

    const bytes = setGsmParameters.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [
    0,
    218, 60, 174, 22, 0, 0, 0, 0, 2, 83, 84, 65, 84, 73, 67, 73,
    80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 206, 163
    ];

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes
    toJson