jooby-codec
    Preparing search index...

    Namespace getParameter

    The 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/uplink/getParameter.js';

    // response to getParameter downlink command
    const bytes = [0x01, 0x00, 0x00, 0x00, 0x04];

    // decoded payload
    const parameters = getParameter.fromBytes(commandBody);

    console.log(parameters);
    // output:
    {
    id: 1,
    data: {value: 2400}
    }

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes