Uplink command to get the magnetic induction sensor parameters and the magnetic induction value.
The corresponding downlink command: getMagneticFieldThreshold.
getMagneticFieldThreshold
Supported in MTX1 and MTX3 devices.
import * as getMagneticFieldThreshold from 'jooby-codec/mtx1/commands/uplink/getMagneticFieldThreshold.js';// simple responseconst bytes = [0x00, 0x0a, 0x00, 0x05, 0x00, 0x7b, 0xff, 0xff, 0xff, 0xff];// decoded payloadconst parameters = getMagneticFieldThreshold.fromBytes(bytes);console.log(parameters);// output:{ induction: 10, threshold: 5, inductionCoefficient: 1.23, reserved: 0xffffffff} Copy
import * as getMagneticFieldThreshold from 'jooby-codec/mtx1/commands/uplink/getMagneticFieldThreshold.js';// simple responseconst bytes = [0x00, 0x0a, 0x00, 0x05, 0x00, 0x7b, 0xff, 0xff, 0xff, 0xff];// decoded payloadconst parameters = getMagneticFieldThreshold.fromBytes(bytes);console.log(parameters);// output:{ induction: 10, threshold: 5, inductionCoefficient: 1.23, reserved: 0xffffffff}
Command format documentation
Uplink command to get the magnetic induction sensor parameters and the magnetic induction value.
The corresponding downlink command:
getMagneticFieldThreshold
.Supported in MTX1 and MTX3 devices.
Example: create command instance from command body hex dump
Command format documentation