Command for retrieving absolute values of channels with hourly differences.
import * as exAbsHourMc from 'jooby-codec/analog/commands/uplink/exAbsHourMc.js';// 1 channel at 2023.03.10 12:00:00 GMTconst bytes = [0x2e, 0x6a, 0x2c, 0x01, 0x83, 0xb9, 0xf3, 0x14, 0x80, 0x01];// decoded payloadconst parameters = exAbsHourMc.fromBytes(bytes);console.log(parameters);// output:{ startTime2000: 731764800, hours: 2, channelList: [ { pulseCoefficient: 100, index: 1, value: 342457, diff: [128] } ]} Copy
import * as exAbsHourMc from 'jooby-codec/analog/commands/uplink/exAbsHourMc.js';// 1 channel at 2023.03.10 12:00:00 GMTconst bytes = [0x2e, 0x6a, 0x2c, 0x01, 0x83, 0xb9, 0xf3, 0x14, 0x80, 0x01];// decoded payloadconst parameters = exAbsHourMc.fromBytes(bytes);console.log(parameters);// output:{ startTime2000: 731764800, hours: 2, channelList: [ { pulseCoefficient: 100, index: 1, value: 342457, diff: [128] } ]}
Command format documentation
Command for retrieving absolute values of channels with hourly differences.
Example: create command instance from command body hex dump
Command format documentation