Uplink 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/uplink/getArchiveState.js';// response to getArchiveState. 81 records from 2023.06.27 18:45:02 GMT to 2023.06.28 15:15:02 GMTconst bytes = [0x02, 0x00, 0x00, 0x00, 0x51, 0x2c, 0x2d, 0xea, 0xae, 0x2c, 0x2f, 0x0a, 0xf6];// decoded payloadconst parameters = getArchiveState.fromBytes(bytes);console.log(parameters);// output:{ requestId: 2, archiveRecordsNumber: 81, eldestTime2000: 741206702, newestTime2000: 741280502} Copy
import * as getArchiveState from 'jooby-codec/obis-observer/commands/uplink/getArchiveState.js';// response to getArchiveState. 81 records from 2023.06.27 18:45:02 GMT to 2023.06.28 15:15:02 GMTconst bytes = [0x02, 0x00, 0x00, 0x00, 0x51, 0x2c, 0x2d, 0xea, 0xae, 0x2c, 0x2f, 0x0a, 0xf6];// decoded payloadconst parameters = getArchiveState.fromBytes(bytes);console.log(parameters);// output:{ requestId: 2, archiveRecordsNumber: 81, eldestTime2000: 741206702, newestTime2000: 741280502}
Command format documentation
Uplink command to get the archive state for the specific meter, including the record count, eldest record date, and newest record date.
Example: create command instance from command body hex dump
Command format documentation