ArmForDatalogging
ArmForDatalogging

Contains logic for the Arm For Datalogging Node command.

Constants
Packet Information
COMMAND_ID

0x000D  - The Command ID for the ArmForDatalogging command

Functions
buildCommand
static ByteStream buildCommand(
NodeAddress nodeAddress,
const std::string &message ""
)

Builds the ArmForDatalogging command packet.

Parameters
nodeAddress

The address of the Node to build the command for.

message
const std::string&

A message, up to 50 characters, to send with the arm command. This message can be downloaded with the data. Will be trimmed to 50 chars if longer. (Default of "")

Returns

A ByteStream containing the command packet.

Response
public
ResponsePattern
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
GenericInertialCommand.​Response
Response

Handles the response to the ArmForDatalogging Node command

Functions
Response
Response(
NodeAddress nodeAddress,
std::weak_ptr<ResponseCollectorcollector
)

Creates an ArmForDatalogging Response object

Parameters
nodeAddress

the node address to check for

collector
std::weak_ptr<ResponseCollector>

The ResponseCollector used to register and unregister the response

Variables
m_nodeAddress
NodeAddress m_nodeAddress

The node address to look for in the response

Functions
match
virtual bool match(
const WirelessPacket &packet
) override

Checks if the WirelessPacket passed in matches the expected response pattern's bytes

Parameters
packet

The WirelessPacket in which to try to find the pattern

Returns

true if the packet matches a response pattern, false otherwise