BaseStation_RfSweepStart
BaseStation_RfSweepStart

Contains logic for the base station Start RF Sweep command.

Functions
buildCommand
static ByteStream buildCommand(
uint32 min,
uint32 max,
uint32 interval,
uint16 options
)

Builds the beacon status command.

Parameters
min
uint32

The minimum sweep frequency in kHz (2400000 = 2.4GHz).

max
uint32

The maximum sweep frequency in kHz (2400000 = 2.4GHz).

interval
uint32

The sweep interval in kHz.

options
uint16

The options to send with the command (advanced, used internally).

Returns

A ByteStream containing the base station beacon status 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 command

Variables
m_min;

The min frequency to match in the response.

m_max;

The max frequency to match in the response.

m_interval;

The interval to match in the response.

m_options
uint16 m_options

The options to send with the command.

Functions
Response
Response(
std::weak_ptr<ResponseCollectorcollector,
uint32 min,
uint32 max,
uint32 interval,
uint16 options
)

Creates a get beacon status Response object

Parameters
collector
std::weak_ptr<ResponseCollector>

The ResponseCollector used to register and unregister the response

min
uint32

The minimum sweep frequency to match.

max
uint32

The maximum sweep frequency to match.

interval
uint32

The sweep interval to match.

options
uint16

The advanced options to match.

match
virtual bool match(
const WirelessPacket &packet
) override

Checks if the packet passed in matches either the success or failure response.

Parameters
packet

The WirelessPacket to try to match.

Returns

true if the response pattern was found, false otherwise.

matchSuccessResponse
bool matchSuccessResponse(
const WirelessPacket &packet
)

Checks if the packet passed in matches the success response.

Parameters
packet

The WirelessPacket to try to match.

Returns

true if the success response pattern was found, false otherwise