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