jooby-codec
    Preparing search index...

    Namespace getDeviceType

    Uplink command to get device type.

    The corresponding downlink command: getDeviceType.

    Supported in MTX1 and MTX3 devices.

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

    // type 1
    const bytes = [0x00, 0x11, 0x21, 0x49, 0x21, 0xB6, 0x81, 0xC0, 0x00];

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

    console.log(parameters);
    // output:
    {
    type: 'MTX 1A10.DG.2L5-LD4',
    revision: 0x0b,
    meterType: 0
    };

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes