jooby-codec
    Preparing search index...

    Device parameters setup command.

    import * sa setParameter from 'jooby-codec/analog/commands/downlink/SetParameter.js';
    import deviceParameters from 'jooby-codec/analog/constants/deviceParameters.js';


    const parameters = {
    id: constants.deviceParameters.ABSOLUTE_DATA,
    data: { value: 2023, meterValue: 204, pulseCoefficient: 100 }
    };
    const bytes = setParameter.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [3, 10, 23, 0, 0, 0, 204, 131, 0, 0, 7, 231]

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes