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 representationconsole.log(bytes);// output:[3, 10, 23, 0, 0, 0, 204, 131, 0, 0, 7, 231] Copy
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 representationconsole.log(bytes);// output:[3, 10, 23, 0, 0, 0, 204, 131, 0, 0, 7, 231]
Command format documentation
Device parameters setup command.
Example
Command format documentation