|
| | 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...
|
| |
| BluetoothController::BluetoothController |
( |
const std::string & |
devicePath, |
|
|
std::string & |
newDeviceAddress |
|
) |
| |
Constructor.
- Parameters
-
| dev | Path to bluetooth serial device |
| 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
-
| severity | log severity |
| message | log 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
-
| newDevicePath | Path to bluetooth serial device |
| newDeviceAddress | Bluetooth adress of controller |
The documentation for this class was generated from the following files:
- /home/travis/build/P8P-7/controller-receiver/src/modules/bluetooth_controller/include/goliath/bluetooth_controller.h
- /home/travis/build/P8P-7/controller-receiver/src/modules/bluetooth_controller/bluetooth_controller.cpp