1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__zigbeemanager/serial.inc.h

36 lines
631 B
C
Raw Permalink Normal View History

2023-04-08 15:06:36 +02:00
#ifndef SERIAL_INC_H
#define SERIAL_INC_H
#include <QDebug>
#include <sys/wait.h>
#include <QSerialPort>
#include <QApplication>
#include <iostream>
class ZigbeeMgr : public QSerialPort
{
Q_OBJECT
public:
//QSerialPort * sp;
QByteArray dataRead;
QByteArray dataWrite;
qint64 dataWriteSize;
QString serialDevicePath;
//QAbstractButton * reply;
//QString serialDevicePath;
void write(QString datas);
ZigbeeMgr();
~ZigbeeMgr();
private slots:
void getData();
void confirmWrite(qint16 byte);
};
#endif // SERIAL_INC_H