| 123456789101112131415161718192021222324 |
- #ifndef UDPHELPER_H
- #define UDPHELPER_H
- #include <QObject>
- #include <QtNetwork/QUdpSocket>
- class UdpHelper : public QObject
- {
- Q_OBJECT
- public:
- explicit UdpHelper(QObject *parent = nullptr);
- int getDeviceTypeAndChannel(int* type,int* channel);
- int getPowerInfo(bool* sts,float* vol,float* cur,float* power,float* factor,float* consum);
- signals:
- public slots:
- private:
- QUdpSocket *mSocket;
- QHostAddress addr;
- quint16 port;
- };
- #endif // _H
|