Downlink command to set the OBIS ID and OBIS profile for the specific OBIS code and meter profile.
import * as setupObis from 'jooby-codec/obis-observer/commands/downlink/setupObis.js';import {contentTypes} from 'jooby-codec/obis-observer/constants/index.js';const parameters = { requestId: 3, meterProfileId: 2, obisId: 240, obisProfile: { capturePeriod: 244, sendingPeriod: 132, sendingCounter: 38, flags: { contentType: contentTypes.AUTO, sendOnChange: true, archive1: false, archive2: false } }, obis: { c: 0, d: 9, e: 1 }};const bytes = setupObis.toBytes(parameters);// output command binary in hex representationconsole.log(bytes);// output[66, 13, 3, 2, 240, 0, 244, 0, 132, 38, 4, 2, 0, 9, 1] Copy
import * as setupObis from 'jooby-codec/obis-observer/commands/downlink/setupObis.js';import {contentTypes} from 'jooby-codec/obis-observer/constants/index.js';const parameters = { requestId: 3, meterProfileId: 2, obisId: 240, obisProfile: { capturePeriod: 244, sendingPeriod: 132, sendingCounter: 38, flags: { contentType: contentTypes.AUTO, sendOnChange: true, archive1: false, archive2: false } }, obis: { c: 0, d: 9, e: 1 }};const bytes = setupObis.toBytes(parameters);// output command binary in hex representationconsole.log(bytes);// output[66, 13, 3, 2, 240, 0, 244, 0, 132, 38, 4, 2, 0, 9, 1]
Command format documentation
Downlink command to set the OBIS ID and OBIS profile for the specific OBIS code and meter profile.
Example
Command format documentation