jooby-codec
    Preparing search index...

    Command for reporting new events.

    import * as newEvent from 'jooby-codec/analog/commands/uplink/newEvent.js';

    // event for MAGNET_ON
    const bytes = [0x01, 0x02, 0x2b, 0xc0, 0x31, 0x60];

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

    console.log(parameters);
    // output:
    {
    id: 1,
    sequenceNumber: 2,
    data: {time2000: 734015840}
    }

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes