jooby-codec
    Preparing search index...

    Command for reporting the last event.

    import * as lastEvent from 'jooby-codec/analog/commands/uplink/lastEvent.js';
    import * as hardwareTypes from 'jooby-codec/analog/constants/hardwareTypes.js';

    const bytes = [0x10, 0xe1, 0x01];

    // decoded payload
    const parameters = lastEvent.fromBytes(bytes, {hardwareType: hardwareTypes.IMP4EU});

    console.log(parameters);
    // output:
    {
    sequenceNumber: 16,
    status: {
    isBatteryLow: true,
    isConnectionLost: false,
    isFirstChannelInactive: false,
    isSecondChannelInactive: true,
    isThirdChannelInactive: true,
    isForthChannelInactive: true
    }
    }

    Command format documentation

    Variables

    examples
    headerSize
    id
    name

    Functions

    fromBytes
    toBytes