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 commandconst bytes = [0x01, 0x00, 0x00, 0x00, 0x04];// decoded payloadconst parameters = getParameter.fromBytes(commandBody);console.log(parameters);// output:{ id: 1, data: {value: 2400}} Copy
import * as getParameter from 'jooby-codec/analog/commands/uplink/getParameter.js';// response to getParameter downlink commandconst bytes = [0x01, 0x00, 0x00, 0x00, 0x04];// decoded payloadconst parameters = getParameter.fromBytes(commandBody);console.log(parameters);// output:{ id: 1, data: {value: 2400}}
Command format documentation
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.
Example
Command format documentation