Downlink command to get the archive state for the specific meter, including the record count, eldest record date, and newest record date.
import * as getArchiveState from 'jooby-codec/obis-observer/commands/downlink/getArchiveState.js';const parameters = { requestId: 5, archiveType: 1, meterId: 3};const bytes = getArchiveState.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[15, 6, 5, 1, 0, 0, 0, 3] Copy
import * as getArchiveState from 'jooby-codec/obis-observer/commands/downlink/getArchiveState.js';const parameters = { requestId: 5, archiveType: 1, meterId: 3};const bytes = getArchiveState.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[15, 6, 5, 1, 0, 0, 0, 3]
Command format documentation
Downlink command to get the archive state for the specific meter, including the record count, eldest record date, and newest record date.
Example
Command format documentation