21,6 → 21,7 |
|
#include <QObject> |
#include <QTcpSocket> |
#include <QTimer> |
|
#include "ToolBox.h" |
#include "../global.h" |
39,10 → 40,15 |
bool Open(int Typ, QString Address); |
bool Close(); |
bool send_Cmd(char CMD, int Address, char Data[150],unsigned int Length, bool Resend = true); |
void stop_ReSend(); |
|
private: |
ManageSerialPort *TTY; |
QTcpSocket *TcpSocket; |
QTimer *o_Timer; |
|
QByteArray s_ReSend; |
|
bool b_isOpen; |
int i_Type; |
sRxData RxData; |
54,6 → 60,8 |
void slot_IP_Connected(); |
void slot_IP_Disconnect(); |
void slot_IP_ReadLine(); |
|
void slot_Timer(); |
// void slot_Error(QAbstractSocket::SocketError Error); |
|
signals: |