WirelessPacketUtils
WirelessPacketUtils

Contains useful utility functions for interfacing with MicroStrain's Wireless packets

Functions
correctPacketType
static void correctPacketType(
WirelessPacket &packet
)

Some packets are not properly identified.  This function looks for special cases of misidentified packets and corrects them.

Parameters
packet

A reference to a WirelessPacket which contains all the wireless packet data and info

packetIntegrityCheck
static bool packetIntegrityCheck(
const WirelessPacket &packet
)

Verifies that the packet matches the packet type that it is currently set to

Parameters
packet

A reference to the WirelessPacket to check the integrity of

Returns

true if the packet's bytes are what they should be for its current type, false otherwise