48 virtual bool_t
open(
const char * filename =
"",
const char * mode =
"w+") {
50 m_filedesc = ev3_serial_open_file(EV3_SERIAL_BT);
71 return ev3_bluetooth_is_connected();
virtual bool_t isOpen()
Return if is bluetooth port open.
FILE * m_filedesc
file of this class
bool_t isConnected()
It is checked whether Bluetooth (Serial Port Profile) is connected.
Class Bluetooth. API for working with bluetooth.
~Bluetooth()
Destructor of class Bluetooth - DO NOTHING.
Bluetooth()
Constructor of class Bluetooth. Don't open bluetooth port. For opening port call open().
virtual int close()
Close the Bluetooth - DO NOTHING.
Class File. API for working with file.
virtual bool_t open(const char *filename="", const char *mode="w+")
Opening serial port on bluetooth. Params are not used.