1,6 → 1,7 |
#ifndef QT_COMMUNICATION_H |
#define QT_COMMUNICATION_H |
#include <Communication.h> |
#ifndef QT_SERIAL_COMMUNICATION_H |
#define QT_SERIAL_COMMUNICATION_H |
#include "Communication.h" |
#include "../SerialPort/ManageSerialPort.h" |
|
/** |
* QT specific communication class |
12,8 → 13,11 |
|
using namespace std; |
|
class QTCommunication : public Communication { |
class QTSerialCommunication : public Communication { |
private: |
ManageSerialPort * serial; |
public: |
QTSerialCommunication(); |
void connect_MK(string addr); |
bool send_cmd(char cmd, int address, char data[150], unsigned int length, bool resend); |
void stop_resend(); |