BaseStation_Ping
BaseStation_Ping

Contains logic for the base station Ping command

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(
DataBuffer &data
) override

Checks if the bytes passed in match the response pattern from their current read position

Parameters
data

The DataBuffer containing the bytes in which to try to find the pattern

Returns

true if the response pattern was found, false otherwise