Command to receive hour pulse counter's values from device archive.
import * as getArchiveHoursMc from 'jooby-codec/analog/commands/uplink/getArchiveHoursMc.js';// response to getArchiveHoursMc downlink commandconst bytes = [0x2f, 0x97, 0x2c, 0x0f, 0x83, 0x01, 0x0a, 0x08, 0x0a, 0x08, 0x0a, 0x0c, 0x0a];// decoded payloadconst parameters = getArchiveHoursMc.fromBytes(bytes);console.log(parameters);// output:{ startTime2000: 756648000, hours: 2, channelList: [ {index: 1, value: 131, diff: [10]}, {index: 2, value: 8, diff: [10]}, {index: 3, value: 8, diff: [10]}, {index: 4, value: 12, diff: [10]} ]} Copy
import * as getArchiveHoursMc from 'jooby-codec/analog/commands/uplink/getArchiveHoursMc.js';// response to getArchiveHoursMc downlink commandconst bytes = [0x2f, 0x97, 0x2c, 0x0f, 0x83, 0x01, 0x0a, 0x08, 0x0a, 0x08, 0x0a, 0x0c, 0x0a];// decoded payloadconst parameters = getArchiveHoursMc.fromBytes(bytes);console.log(parameters);// output:{ startTime2000: 756648000, hours: 2, channelList: [ {index: 1, value: 131, diff: [10]}, {index: 2, value: 8, diff: [10]}, {index: 3, value: 8, diff: [10]}, {index: 4, value: 12, diff: [10]} ]}
Command format documentation
Command to receive hour pulse counter's values from device archive.
Example: create command instance from command body hex dump
Command format documentation