Represents a MicroStrain wireless packet
typedef for the bytes that make up a payload in a packet
Possible error codes from response packets.
The default constructor for a wireless packet
static void throwEepromResponseError( |
| ) |
Throws an exception based on a ResponseErrorCode from a read/write eeprom command. Not all error codes will cause an exception.
errorCode | The ResponseErrorCode to use for potentially throwing an exception. |
location uint16 | The eeprom location associated with the command. |
- Error_NotSupported | invalid eeprom location, value out of bounds, or read only eeprom location. |
The node received signal strength indicator (strength of which the node received the command from the base station). This value will be set to -200 if the packet contains a legacy junk lqi byte that should be thrown out.
The base received signal strength indicator (strength of which the base station received the response from the node).
The WirelessTypes::Frequency that this packet was collected on.
Gets whether or not the packet is a Data packet.
true if the packet is a data packet, false otherwise.
Gets whether or not the packet is a Node Discovery packet.
true if the packet is a discovery packet, false otherwise.
Gets the delivery stop flags for the packet
The delivery stop flags as a DeliveryStopFlags object
void deliveryStopFlags( |
| ) |
Sets the delivery stop flags to the passed in flags
flags | the delivery stop flags to set |
void type( |
| ) |
Sets the packet type of the packet
packetType | The packet type to set, as a PacketType enumeration |
Gets the node address of the packet
The node address of the packet
void nodeAddress( |
| ) |
Gets the node RSSI of the packet
The node RSSI
void nodeRSSI( |
| ) |
Sets the node RSSI of the packet
rssi int16 | The node rssi to set |
Gets the base station RSSI of the packet
The base station RSSI
void baseRSSI( |
| ) |
Sets the base station RSSI of the packet
rssi int16 | The base station RSSI |
Gets the WirelessTypes::Frequency that the packet was collected on
The WirelessTypes::Frequency that the packet was collected on
void frequency( |
| ) |
Sets the WirelessTypes::Frequency that the packet was collected on
freq | The WirelessTypes::Frequency that the packet was collected on |
Gets the payload bytes of the packet
The payload of the packet, as a vector of bytes