Uplink command to get current values like voltage, power, etc.
import * as getCurrentValues from 'jooby-codec/mtx3/commands/uplink/getCurrentValues.js';// simple responseconst bytes = [ 0x00, 0x03, 0x82, 0x70, 0x00, 0x03, 0x86, 0x58, 0x00, 0x03, 0x7e, 0x88, 0x00, 0x00, 0x13, 0x88, 0x00, 0x00, 0x13, 0x24, 0x00, 0x00, 0x13, 0xba, 0x00, 0x11, 0x8c, 0x30, 0x00, 0x11, 0x17, 0x00, 0x00, 0x11, 0xb3, 0x40, 0x00, 0x03, 0x0d, 0x40, 0x00, 0x02, 0xf9, 0xb8, 0x00, 0x03, 0x20, 0xc8, 0x00, 0x00, 0x05, 0xdc];// decoded payloadconst parameters = getCurrentValues.fromBytes(bytes);console.log(parameters);// output:{ vaRms: 230000, vbRms: 231000, vcRms: 229000, iaRms: 5000, ibRms: 4900, icRms: 5050, powerA: 1150000, powerB: 1120000, powerC: 1160000, varA: 200000, varB: 195000, varC: 205000, iNeutral: 1500} Copy
import * as getCurrentValues from 'jooby-codec/mtx3/commands/uplink/getCurrentValues.js';// simple responseconst bytes = [ 0x00, 0x03, 0x82, 0x70, 0x00, 0x03, 0x86, 0x58, 0x00, 0x03, 0x7e, 0x88, 0x00, 0x00, 0x13, 0x88, 0x00, 0x00, 0x13, 0x24, 0x00, 0x00, 0x13, 0xba, 0x00, 0x11, 0x8c, 0x30, 0x00, 0x11, 0x17, 0x00, 0x00, 0x11, 0xb3, 0x40, 0x00, 0x03, 0x0d, 0x40, 0x00, 0x02, 0xf9, 0xb8, 0x00, 0x03, 0x20, 0xc8, 0x00, 0x00, 0x05, 0xdc];// decoded payloadconst parameters = getCurrentValues.fromBytes(bytes);console.log(parameters);// output:{ vaRms: 230000, vbRms: 231000, vcRms: 229000, iaRms: 5000, ibRms: 4900, icRms: 5050, powerA: 1150000, powerB: 1120000, powerC: 1160000, varA: 200000, varB: 195000, varC: 205000, iNeutral: 1500}
Command format documentation
Uplink command to get current values like voltage, power, etc.
Example: create command instance from command body hex dump
Command format documentation