This command is an extended version of hourMc. Command could send up to 256 hours if transport support. To get this uplink need to set param mqtt data send config in parameter types.
hourMc
256
mqtt data send config
parameter types
import * as hourMcEx from 'jooby-codec/analog/commands/uplink/hourMcEx.js';// 1 channel at 2023.12.23 12:00:00 GMTconst bytes = [0x2f, 0x97, 0x0c, 0x07, 0x01, 0x83, 0x01, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a];// decoded payloadconst parameters = hourMcEx.fromBytes(bytes);console.log(parameters);// output:{ startTime2000: 756648000, hour: 12, hours: 7, channelList: [ {value: 131, diff: [10, 10, 10, 10, 10, 10, 10], index: 1} ]} Copy
import * as hourMcEx from 'jooby-codec/analog/commands/uplink/hourMcEx.js';// 1 channel at 2023.12.23 12:00:00 GMTconst bytes = [0x2f, 0x97, 0x0c, 0x07, 0x01, 0x83, 0x01, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a, 0x0a];// decoded payloadconst parameters = hourMcEx.fromBytes(bytes);console.log(parameters);// output:{ startTime2000: 756648000, hour: 12, hours: 7, channelList: [ {value: 131, diff: [10, 10, 10, 10, 10, 10, 10], index: 1} ]}
Command format documentation
This command is an extended version of
hourMc
. Command could send up to256
hours if transport support. To get this uplink need to set parammqtt data send config
inparameter types
.Example: create command instance from command body hex dump
Command format documentation