Command to send data frame to Ultrasound water meter.
import * as usWaterMeterCommand from 'jooby-codec/analog/commands/downlink/usWaterMeterCommand.js';// request current valuesconst parameters = { length: 3, data: [0x21, 0x02]};const bytes = usWaterMeterCommand.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[31, 7, 3, 3, 33, 2] Copy
import * as usWaterMeterCommand from 'jooby-codec/analog/commands/downlink/usWaterMeterCommand.js';// request current valuesconst parameters = { length: 3, data: [0x21, 0x02]};const bytes = usWaterMeterCommand.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[31, 7, 3, 3, 33, 2]
Command format documentation
Command to send data frame to Ultrasound water meter.
Example
Command format documentation