Class Bluetooth. API for working with bluetooth. More...
#include <ev3cxx_bluetooth.h>
Public Member Functions | |
| Bluetooth () | |
| Constructor of class Bluetooth. Don't open bluetooth port. For opening port call open(). | |
| Bluetooth (bool_t open_bt) | |
| ~Bluetooth () | |
| Destructor of class Bluetooth - DO NOTHING. | |
| virtual bool_t | open (const char *filename="", const char *mode="w+") |
| Opening serial port on bluetooth. Params are not used. More... | |
| virtual bool_t | isOpen () |
| Return if is bluetooth port open. More... | |
| bool_t | isConnected () |
| It is checked whether Bluetooth (Serial Port Profile) is connected. More... | |
| virtual int | close () |
| Close the Bluetooth - DO NOTHING. More... | |
Public Member Functions inherited from File | |
| File (const char *filename, const char *mode="w+") | |
| Constructor of class File. More... | |
| virtual | ~File () |
| Destructor of class File. Close the file if is open. | |
| FILE * | operator() () |
| Return file descriptor to open file or NULL. | |
| int | write (char ch) |
| Write character to file. More... | |
| int | readChar () |
| Read character from file. More... | |
| template<typename T > | |
| std::enable_if< std::is_integral< T >::value, int >::type | readNumber (T &val) |
| Read number from file. More... | |
| template<typename T > | |
| std::enable_if< std::is_floating_point< T >::value, int >::type | readNumber (T &val) |
| void | rewind () |
| Set position of stream to the beginning. More... | |
Additional Inherited Members | |
Protected Attributes inherited from File | |
| FILE * | m_filedesc |
| file of this class | |
Class Bluetooth. API for working with bluetooth.
Definition at line 22 of file ev3cxx_bluetooth.h.
|
inlinevirtual |
Close the Bluetooth - DO NOTHING.
Reimplemented from File.
Definition at line 79 of file ev3cxx_bluetooth.h.
|
inline |
It is checked whether Bluetooth (Serial Port Profile) is connected.
| true | Connected. It can communicate with the Bluetooth virtual serial port. |
| false | Unconnected. |
Definition at line 70 of file ev3cxx_bluetooth.h.
|
inlinevirtual |
Return if is bluetooth port open.
Reimplemented from File.
Definition at line 60 of file ev3cxx_bluetooth.h.
References File::m_filedesc.
|
inlinevirtual |
Opening serial port on bluetooth. Params are not used.
Reimplemented from File.
Definition at line 48 of file ev3cxx_bluetooth.h.
References File::m_filedesc.
Referenced by Bluetooth::Bluetooth().