jooby-codec
    Preparing search index...

    Namespace setDateTime

    Downlink command to set full date and time on the meter.

    Supported in MTX1 and MTX3 devices.

    import * as setDateTime from 'jooby-codec/mtx1/commands/downlink/setDateTime.js';

    const parameters = {
    isSummerTime: false,
    seconds: 55,
    minutes: 31,
    hours: 18,
    day: 2,
    date: 19,
    month: 2,
    year: 24
    };
    const bytes = setDateTime.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [8, 8, 0, 55, 31, 18, 2, 19, 2, 24]

    Command format documentation

    Variables

    accessLevel
    examples
    headerSize
    id
    isLoraOnly
    maxSize
    name

    Functions

    fromBytes
    toBytes