Uplink command to get current values like voltage, power, etc.
import * as getCurrentValues from 'jooby-codec/mtx1/commands/uplink/getCurrentValues.js';// simple responseconst bytes = [ 0x00, 0x23, 0xd8, 0xb2, 0x00, 0x3d, 0xfa, 0x53, 0x00, 0x04, 0x9e, 0x89, 0x00, 0x01, 0xa1, 0x25, 0x01, 0xf4, 0x00, 0x04, 0xa6, 0x8b, 0x00, 0x01, 0x9f, 0x28, 0x00, 0x01, 0xa3, 0x1c, 0xfe, 0x0c];// decoded payloadconst parameters = getCurrentValues.fromBytes(bytes);console.log(parameters);// output:{ powerA: 2349234, iaRms: 4061779, vavbRms: 302729, varA: 106789, pfA: 0.5, ibRms: 304779, powerB: 106280, varB: 107292, pfB: -0.5} Copy
import * as getCurrentValues from 'jooby-codec/mtx1/commands/uplink/getCurrentValues.js';// simple responseconst bytes = [ 0x00, 0x23, 0xd8, 0xb2, 0x00, 0x3d, 0xfa, 0x53, 0x00, 0x04, 0x9e, 0x89, 0x00, 0x01, 0xa1, 0x25, 0x01, 0xf4, 0x00, 0x04, 0xa6, 0x8b, 0x00, 0x01, 0x9f, 0x28, 0x00, 0x01, 0xa3, 0x1c, 0xfe, 0x0c];// decoded payloadconst parameters = getCurrentValues.fromBytes(bytes);console.log(parameters);// output:{ powerA: 2349234, iaRms: 4061779, vavbRms: 302729, varA: 106789, pfA: 0.5, ibRms: 304779, powerB: 106280, varB: 107292, pfB: -0.5}
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