BaseStation_Ping_v2
BaseStation_Ping_v2

Contains logic for the base station Ping command (v2).

Functions
buildCommand
static ByteStream buildCommand()

Builds the Ping command packet.

Returns

A ByteStream containing the base station Ping command.

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 base station Ping command.

Functions
Response
explicit Response(
std::weak_ptr<ResponseCollectorcollector
)

Creates a Ping Response object.

Parameters
collector
std::weak_ptr<ResponseCollector>

The ResponseCollector used to register and unregister the response.

match
virtual bool match(
const WirelessPacket &packet
) override

Checks if the packet passed in matches any response to the Ping command.

Parameters
packet

The WirelessPacket to check for a match.

Returns

true if the response pattern was found, false otherwise.