Information about multi-channel currents.
import * as currentMc from 'jooby-codec/analog/commands/uplink/currentMc.js';// 4 channels for IMP4EUconst bytes = [0x0f, 0x83, 0x01, 0x08, 0x0a, 0x0c];// decoded payloadconst parameters = currentMc.fromBytes(bytes);console.log(parameters);// output:{ channelList: [ {index: 1, value: 131}, {index: 2, value: 8}, {index: 3, value: 10}, {index: 4, value: 12} ]} Copy
import * as currentMc from 'jooby-codec/analog/commands/uplink/currentMc.js';// 4 channels for IMP4EUconst bytes = [0x0f, 0x83, 0x01, 0x08, 0x0a, 0x0c];// decoded payloadconst parameters = currentMc.fromBytes(bytes);console.log(parameters);// output:{ channelList: [ {index: 1, value: 131}, {index: 2, value: 8}, {index: 3, value: 10}, {index: 4, value: 12} ]}
Command format documentation
Information about multi-channel currents.
Example: create command instance from command body hex dump
Command format documentation