Uplink command to get the meter archive data.
import * as readMeterArchive from 'jooby-codec/obis-observer/commands/uplink/readMeterArchive.js';// response to readMeterArchive downlink commandconst bytes = [0x0c, 0x01, 0x1b, 0xb4, 0x0c, 0x60, 0x08, 0x3e, 0xcc, 0xcc, 0xcd, 0x00, 0x1b, 0xb4, 0x0c, 0x20, 0x08, 0x3e, 0x4c, 0xcc, 0xcd];// decoded payloadconst parameters = readMeterArchive.fromBytes(bytes);console.log(parameters);// output:{ requestId: 12, isCompleted: true, content: [ { time2000: 464784480, obisValueList: [{code: 8, content: 0.40}] }, { time2000: 464784416, obisValueList: [{code: 8, content: 0.20}] } ]} Copy
import * as readMeterArchive from 'jooby-codec/obis-observer/commands/uplink/readMeterArchive.js';// response to readMeterArchive downlink commandconst bytes = [0x0c, 0x01, 0x1b, 0xb4, 0x0c, 0x60, 0x08, 0x3e, 0xcc, 0xcc, 0xcd, 0x00, 0x1b, 0xb4, 0x0c, 0x20, 0x08, 0x3e, 0x4c, 0xcc, 0xcd];// decoded payloadconst parameters = readMeterArchive.fromBytes(bytes);console.log(parameters);// output:{ requestId: 12, isCompleted: true, content: [ { time2000: 464784480, obisValueList: [{code: 8, content: 0.40}] }, { time2000: 464784416, obisValueList: [{code: 8, content: 0.20}] } ]}
Command format documentation
Uplink command to get the meter archive data.
Example: create command instance from command body hex dump
Command format documentation