Goliath II
Controller Receiver
 All Classes Namespaces Files Functions Enumerations
Public Member Functions | List of all members
goliath::btc::BluetoothController Class Reference

Public Member Functions

 BluetoothController (const std::string &devicePath, std::string &newDeviceAddress)
 Constructor. More...
 
 BluetoothController ()
 Constructor.
 
bool connect ()
 Connect to controller.
 
void start ()
 Start the controller. More...
 
void start (const std::string &newDevicePath, std::string &newDeviceAddress)
 
void reconnect ()
 Reconnect to controller if connection was lost.
 
Input receive ()
 Wait for input to be received.
 
void send (Status status, int value)
 
void send (int severity, std::string message)
 
void sendLast ()
 Send last status message to controller.
 
void clear ()
 Clear bluetooth serial buffer.
 
bool connected ()
 Check if still connected to controller. More...
 

Constructor & Destructor Documentation

BluetoothController::BluetoothController ( const std::string &  devicePath,
std::string &  newDeviceAddress 
)

Constructor.

Parameters
devPath to bluetooth serial device

Member Function Documentation

bool goliath::btc::BluetoothController::connected ( )

Check if still connected to controller.

Returns
bool true if connected to controller
void goliath::btc::BluetoothController::send ( int  severity,
std::string  message 
)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
severitylog severity
messagelog message
bool goliath::btc::BluetoothController::start ( )

Start the controller.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Parameters
newDevicePathPath to bluetooth serial device
newDeviceAddressBluetooth adress of controller

The documentation for this class was generated from the following files: