NodeDiscoveryPacket_v2
public
WirelessPacket
NodeDiscoveryPacket_v2

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

Constants
Node Discovery v2 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.

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 (v2) packet.

Parameters
packet

The fully formed Wireless Packet to check the integrity of.

Returns

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