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 payloadconst 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 }} Copy
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 payloadconst 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
Command for reporting the last event.
Example: create command instance from command body hex dump
Command format documentation