jooby-codec
    Preparing search index...

    Downlink command to read the parameter set in the sensor.

    In the body of the command, you must specify the type of the parameter. In response, the sensor will transmit the current value of the requested parameter.

    import * as getParameter from 'jooby-codec/analog/commands/downlink/getParameter.js';

    const parameters = {id: 29, name: 'ABSOLUTE_DATA_MULTI_CHANNEL', data: {channel: 1}};
    const bytes = getParameter.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [4, 2, 29, 0]

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes