BaseStation_SetBeacon
BaseStation_SetBeacon

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

Constants
Packet Information
COMMAND_ID

0xBEAC  - The Command ID for the set beacon command

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(
uint64 utcTime,
std::weak_ptr<ResponseCollectorcollector
)

Creates a set beacon Response object

Parameters
utcTime
uint64

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
Timestamp m_beaconStartTime

The start time that was sent to the beacon as a Timestamp object

Functions
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

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