jooby-codec
    Preparing search index...

    Namespace getDateTime

    Uplink command to get full date from device.

    The corresponding downlink command: getDateTime.

    Supported in MTX1 and MTX3 devices.

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

    // device time is: 2024.02.19 18:31:55
    const bytes = [0x00, 0x37, 0x1f, 0x12, 0x02, 0x13, 0x02, 0x18];

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

    console.log(parameters);
    // output:
    {
    isSummerTime: false,
    seconds: 55,
    minutes: 31,
    hours: 18,
    day: 2,
    date: 19,
    month: 2,
    year: 24
    }

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes