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 representationconsole.log(bytes);// output:[4, 2, 29, 0] Copy
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 representationconsole.log(bytes);// output:[4, 2, 29, 0]
Command format documentation
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.
Example
Command format documentation