jooby-codec
    Preparing search index...

    Time correction command.

    It is used when the time difference is more than 127 seconds. A device should apply it immediately.

    import * as setTime2000 from 'jooby-codec/analog/commands/downlink/setTime2000.js';

    // 240 seconds to the future
    const parameters = {sequenceNumber: 78, seconds: 123456};
    const bytes = setTime2000.toBytes(parameters);

    // command binary representation
    console.log(bytes);
    // output:
    [2, 5, 78, 0, 1, 226, 64]

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes