NodeDiscoveryPacket_v4
public
WirelessPacket
NodeDiscoveryPacket_v4

A class representing a MicroStrain "node discovery" packet (version 4).

Constants
Node Discovery v3 Packet Information
PAYLOAD_OFFSET_RADIO_CHANNEL

0  - The offset into the payload to get the radio channel.

PAYLOAD_OFFSET_PAN_ID

1  - The offset into the payload to get the PAN id.

PAYLOAD_OFFSET_MODEL_NUMBER

3  - The offset into the payload to get the Model Number.

PAYLOAD_OFFSET_MODEL_OPTION

5  - The offset into the payload to get the Model Option.

PAYLOAD_OFFSET_SERIAL_NUMBER

7  - The offset into the payload to get the Serial Number.

PAYLOAD_OFFSET_FIRMWARE_VER

11  - The offset into the payload to get the Firmware Version (part 1).

PAYLOAD_OFFSET_FIRMWARE_2

13  - The offset into the payload to get the Firmware Version (part 2).

PAYLOAD_OFFSET_DEFAULT_MODE

15  - The offset into the payload to get the Default Mode.

PAYLOAD_OFFSET_BUILT_IN_TEST

17  - The offset into the payload to get the Built in Test.

stopFlags_nodeDiscovery

The delivery stop flags that are expected in the node discovery command.

Functions
integrityCheck
static bool integrityCheck(
const WirelessPacket &packet
)

Verifies that the packet is a well formed Node Discovery (v4) packet.

Parameters
packet

The fully formed Wireless Packet to check the integrity of.

Returns

true is the packet is a well-formed Node Discovery (v4) Packet, false otherwise.