BaseStation_SetBeacon_v2
BaseStation_SetBeacon_v2

Contains logic for the base station set (enable/disable) beacon command (v2)

Functions
buildCommand
static ByteStream buildCommand(
uint32 utcTime
)

Builds the set beacon command packet, using the passed in seconds as the start time

Parameters
utcTime
uint32

The start time for the beacon in UTC seconds from the Unix Epoch (01/01/1970)

Returns

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

Functions
Response
Response(
uint32 utcTime,
std::weak_ptr<ResponseCollectorcollector
)

Creates a set beacon Response object

Parameters
utcTime
uint32

The start time for the beacon in UTC seconds from the Unix Epoch (01/01/1970)

collector
std::weak_ptr<ResponseCollector>

The ResponseCollector used to register and unregister the response

Variables
m_beaconStartTime
uint32 m_beaconStartTime

The start time that was sent to the beacon.

Functions
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.

beaconStartTime
Timestamp beaconStartTime() const

Gets the start time that was sent to enable the beacon

Returns

a Timestamp representing the start time that was sent to enable the beacon

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

matchFailResponse
bool matchFailResponse(
const WirelessPacket &packet
)

Checks if the packet passed in matches the failure response.

Parameters
packet

The WirelessPacket to try to match.

Returns

true if the failure response pattern was found, false otherwise