jooby-codec
    Preparing search index...

    Namespace getMagneticFieldThreshold

    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.

    import * as getMagneticFieldThreshold from 'jooby-codec/mtx1/commands/uplink/getMagneticFieldThreshold.js';

    // simple response
    const bytes = [0x00, 0x0a, 0x00, 0x05, 0x00, 0x7b, 0xff, 0xff, 0xff, 0xff];

    // decoded payload
    const parameters = getMagneticFieldThreshold.fromBytes(bytes);

    console.log(parameters);
    // output:
    {
    induction: 10,
    threshold: 5,
    inductionCoefficient: 1.23,
    reserved: 0xffffffff
    }

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes