Downlink command to setup the meter id, meter profile id, meter address to the meter. A new meter will be created if it doesn't exist.
import * as setupMeter from 'jooby-codec/obis-observer/commands/downlink/setupMeter.js';const parameters = { requestId: 3, meterId: 20, meterProfileId: 17, address: 'ma2375'};const bytes = setupMeter.toBytes(parameters);// output command binary in hex representationconsole.log(bytes);// output[112, 13, 3, 0, 0, 0, 20, 6, 109, 97, 50, 51, 55, 53, 17] Copy
import * as setupMeter from 'jooby-codec/obis-observer/commands/downlink/setupMeter.js';const parameters = { requestId: 3, meterId: 20, meterProfileId: 17, address: 'ma2375'};const bytes = setupMeter.toBytes(parameters);// output command binary in hex representationconsole.log(bytes);// output[112, 13, 3, 0, 0, 0, 20, 6, 109, 97, 50, 51, 55, 53, 17]
Command format documentation
Downlink command to setup the meter id, meter profile id, meter address to the meter. A new meter will be created if it doesn't exist.
Example
Command format documentation