From d3624454f67e3afc026d7e16546f5549e67f6102 Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Thu, 6 Jul 2017 19:04:48 +0930 Subject: Added console based server that allows clients to connect and send commands to the microcontroller, does not require X to use, includes the IRC bot. Also included my beginning works on a c ncurses based client. --- qt/consoleserver/serial.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 qt/consoleserver/serial.h (limited to 'qt/consoleserver/serial.h') diff --git a/qt/consoleserver/serial.h b/qt/consoleserver/serial.h new file mode 100644 index 0000000..3f0386a --- /dev/null +++ b/qt/consoleserver/serial.h @@ -0,0 +1,27 @@ +#ifndef SERIAL_H +#define SERIAL_H + +#include +#include +#include +#include + + +class serial : public QObject +{ + Q_OBJECT +public: + serial(); + void start(QString port); + public slots: + void send(QString com); +private: + bool connect(QString port); + void show_ports(); + QSerialPort ser; + QSerialPortInfo s; + QByteArray serdata; + QByteArray data; +}; + +#endif // SERIAL_H -- cgit v1.2.3