Command to request hour pulse counter's values from device archive.
import * as getArchiveHoursMc from 'jooby-codec/analog/commands/downlink/getArchiveHoursMc.js';// hour pulse counter and 1 hour diff for 1 channel from 2023.12.23 12:00:00 GMTconst parameters = {startTime2000: 756648000, hours: 2, channelList: [1]};const bytes = getArchiveHoursMc.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[26, 4, 47, 151, 44, 1] Copy
import * as getArchiveHoursMc from 'jooby-codec/analog/commands/downlink/getArchiveHoursMc.js';// hour pulse counter and 1 hour diff for 1 channel from 2023.12.23 12:00:00 GMTconst parameters = {startTime2000: 756648000, hours: 2, channelList: [1]};const bytes = getArchiveHoursMc.toBytes(parameters);// command binary representationconsole.log(bytes);// output:[26, 4, 47, 151, 44, 1]
Command format documentation
Command to request hour pulse counter's values from device archive.
Example
Command format documentation