SMA: Improve Sunny WebBox discovery
This commit is contained in:
parent
5b57ae2faa
commit
a237bb5d3a
@ -30,9 +30,10 @@
|
|||||||
|
|
||||||
#include "integrationpluginsma.h"
|
#include "integrationpluginsma.h"
|
||||||
#include "plugininfo.h"
|
#include "plugininfo.h"
|
||||||
|
#include "speedwirediscovery.h"
|
||||||
|
#include "sunnywebboxdiscovery.h"
|
||||||
|
|
||||||
#include <network/networkdevicediscovery.h>
|
#include <network/networkdevicediscovery.h>
|
||||||
#include "speedwirediscovery.h"
|
|
||||||
|
|
||||||
IntegrationPluginSma::IntegrationPluginSma()
|
IntegrationPluginSma::IntegrationPluginSma()
|
||||||
{
|
{
|
||||||
@ -53,16 +54,12 @@ void IntegrationPluginSma::discoverThings(ThingDiscoveryInfo *info)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
qCDebug(dcSma()) << "Starting network discovery...";
|
qCDebug(dcSma()) << "Starting Sunny WebBox discovery...";
|
||||||
NetworkDeviceDiscoveryReply *discoveryReply = hardwareManager()->networkDeviceDiscovery()->discover();
|
SunnyWebBoxDiscovery *webBoxDiscovery = new SunnyWebBoxDiscovery(hardwareManager()->networkManager(), hardwareManager()->networkDeviceDiscovery(), info);
|
||||||
connect(discoveryReply, &NetworkDeviceDiscoveryReply::finished, this, [=](){
|
connect(webBoxDiscovery, &SunnyWebBoxDiscovery::discoveryFinished, this, [=](){
|
||||||
|
webBoxDiscovery->deleteLater();
|
||||||
ThingDescriptors descriptors;
|
ThingDescriptors descriptors;
|
||||||
qCDebug(dcSma()) << "Discovery finished. Found" << discoveryReply->networkDeviceInfos().count() << "devices";
|
foreach (const NetworkDeviceInfo &networkDeviceInfo, webBoxDiscovery->discoveryResults()) {
|
||||||
foreach (const NetworkDeviceInfo &networkDeviceInfo, discoveryReply->networkDeviceInfos()) {
|
|
||||||
// Filter for sma hosts
|
|
||||||
if (!networkDeviceInfo.hostName().toLower().contains("sma"))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
QString title = networkDeviceInfo.hostName() + " (" + networkDeviceInfo.address().toString() + ")";
|
QString title = networkDeviceInfo.hostName() + " (" + networkDeviceInfo.address().toString() + ")";
|
||||||
QString description;
|
QString description;
|
||||||
if (networkDeviceInfo.macAddressManufacturer().isEmpty()) {
|
if (networkDeviceInfo.macAddressManufacturer().isEmpty()) {
|
||||||
@ -90,6 +87,9 @@ void IntegrationPluginSma::discoverThings(ThingDiscoveryInfo *info)
|
|||||||
info->addThingDescriptors(descriptors);
|
info->addThingDescriptors(descriptors);
|
||||||
info->finish(Thing::ThingErrorNoError);
|
info->finish(Thing::ThingErrorNoError);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
webBoxDiscovery->startDiscovery();
|
||||||
|
|
||||||
} else if (info->thingClassId() == speedwireMeterThingClassId) {
|
} else if (info->thingClassId() == speedwireMeterThingClassId) {
|
||||||
SpeedwireDiscovery *speedwireDiscovery = new SpeedwireDiscovery(hardwareManager()->networkDeviceDiscovery(), info);
|
SpeedwireDiscovery *speedwireDiscovery = new SpeedwireDiscovery(hardwareManager()->networkDeviceDiscovery(), info);
|
||||||
if (!speedwireDiscovery->initialize()) {
|
if (!speedwireDiscovery->initialize()) {
|
||||||
|
|||||||
@ -10,7 +10,8 @@ SOURCES += \
|
|||||||
speedwireinverterreply.cpp \
|
speedwireinverterreply.cpp \
|
||||||
speedwireinverterrequest.cpp \
|
speedwireinverterrequest.cpp \
|
||||||
speedwiremeter.cpp \
|
speedwiremeter.cpp \
|
||||||
sunnywebbox.cpp
|
sunnywebbox.cpp \
|
||||||
|
sunnywebboxdiscovery.cpp
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
integrationpluginsma.h \
|
integrationpluginsma.h \
|
||||||
@ -21,4 +22,5 @@ HEADERS += \
|
|||||||
speedwireinverterreply.h \
|
speedwireinverterreply.h \
|
||||||
speedwireinverterrequest.h \
|
speedwireinverterrequest.h \
|
||||||
speedwiremeter.h \
|
speedwiremeter.h \
|
||||||
sunnywebbox.h
|
sunnywebbox.h \
|
||||||
|
sunnywebboxdiscovery.h
|
||||||
|
|||||||
@ -142,6 +142,43 @@ void SunnyWebBox::setMacAddress(const QString &macAddress)
|
|||||||
m_macAddress = macAddress;
|
m_macAddress = macAddress;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QNetworkReply *SunnyWebBox::sendRequest(const QHostAddress &address, const QString &procedure, const QJsonObject ¶ms, const QString &requestId)
|
||||||
|
{
|
||||||
|
qCDebug(dcSma()) << "SunnyWebBox: Send message to" << address.toString() << "Procedure:" << procedure << "Params:" << params;
|
||||||
|
|
||||||
|
QString finalRequestId = requestId;
|
||||||
|
if (finalRequestId.isEmpty())
|
||||||
|
finalRequestId = generateRequestId();
|
||||||
|
|
||||||
|
QJsonDocument doc;
|
||||||
|
QJsonObject obj;
|
||||||
|
obj["format"] = "JSON";
|
||||||
|
obj["id"] = requestId;
|
||||||
|
obj["proc"] = procedure;
|
||||||
|
obj["version"] = "1.0";
|
||||||
|
|
||||||
|
if (!params.isEmpty()) {
|
||||||
|
obj.insert("params", params);
|
||||||
|
}
|
||||||
|
doc.setObject(obj);
|
||||||
|
|
||||||
|
QUrl url;
|
||||||
|
url.setHost(address.toString());
|
||||||
|
url.setPath("/rpc");
|
||||||
|
url.setPort(80);
|
||||||
|
url.setScheme("http");
|
||||||
|
QNetworkRequest request(url);
|
||||||
|
request.setHeader(QNetworkRequest::KnownHeaders::ContentTypeHeader, "application/json");
|
||||||
|
QByteArray data = doc.toJson(QJsonDocument::JsonFormat::Compact);
|
||||||
|
data.prepend("RPC=");
|
||||||
|
return m_networkManager->post(request, data);
|
||||||
|
}
|
||||||
|
|
||||||
|
QString SunnyWebBox::generateRequestId()
|
||||||
|
{
|
||||||
|
return QUuid::createUuid().toString().remove('{').remove('-').left(14);
|
||||||
|
}
|
||||||
|
|
||||||
void SunnyWebBox::parseMessage(const QString &messageId, const QString &messageType, const QVariantMap &result)
|
void SunnyWebBox::parseMessage(const QString &messageId, const QString &messageType, const QVariantMap &result)
|
||||||
{
|
{
|
||||||
if (messageType == "GetPlantOverview") {
|
if (messageType == "GetPlantOverview") {
|
||||||
@ -263,31 +300,8 @@ QString SunnyWebBox::sendMessage(const QHostAddress &address, const QString &pro
|
|||||||
|
|
||||||
QString SunnyWebBox::sendMessage(const QHostAddress &address, const QString &procedure, const QJsonObject ¶ms)
|
QString SunnyWebBox::sendMessage(const QHostAddress &address, const QString &procedure, const QJsonObject ¶ms)
|
||||||
{
|
{
|
||||||
qCDebug(dcSma()) << "SunnyWebBox: Send message to" << address.toString() << "Procedure:" << procedure << "Params:" << params;
|
QString requestId = generateRequestId();
|
||||||
QString requestId = QUuid::createUuid().toString().remove('{').remove('-').left(14);
|
QNetworkReply *reply = sendRequest(m_hostAddresss, procedure, params, requestId);
|
||||||
|
|
||||||
QJsonDocument doc;
|
|
||||||
QJsonObject obj;
|
|
||||||
obj["format"] = "JSON";
|
|
||||||
obj["id"] = requestId;
|
|
||||||
obj["proc"] = procedure;
|
|
||||||
obj["version"] = "1.0";
|
|
||||||
|
|
||||||
if (!params.isEmpty()) {
|
|
||||||
obj.insert("params", params);
|
|
||||||
}
|
|
||||||
doc.setObject(obj);
|
|
||||||
|
|
||||||
QUrl url;
|
|
||||||
url.setHost(address.toString());
|
|
||||||
url.setPath("/rpc");
|
|
||||||
url.setPort(80);
|
|
||||||
url.setScheme("http");
|
|
||||||
QNetworkRequest request(url);
|
|
||||||
request.setHeader(QNetworkRequest::KnownHeaders::ContentTypeHeader, "application/json");
|
|
||||||
QByteArray data = doc.toJson(QJsonDocument::JsonFormat::Compact);
|
|
||||||
data.prepend("RPC=");
|
|
||||||
QNetworkReply *reply = m_networkManager->post(request, data);
|
|
||||||
connect(reply, &QNetworkReply::finished, reply, &QNetworkReply::deleteLater);
|
connect(reply, &QNetworkReply::finished, reply, &QNetworkReply::deleteLater);
|
||||||
connect(reply, &QNetworkReply::finished, this, [this, address, requestId, reply]{
|
connect(reply, &QNetworkReply::finished, this, [this, address, requestId, reply]{
|
||||||
|
|
||||||
|
|||||||
@ -35,6 +35,7 @@
|
|||||||
#include "network/networkaccessmanager.h"
|
#include "network/networkaccessmanager.h"
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
#include <QJsonObject>
|
||||||
#include <QHostAddress>
|
#include <QHostAddress>
|
||||||
#include <QUdpSocket>
|
#include <QUdpSocket>
|
||||||
|
|
||||||
@ -90,6 +91,10 @@ public:
|
|||||||
QString macAddress() const;
|
QString macAddress() const;
|
||||||
void setMacAddress(const QString &macAddress);
|
void setMacAddress(const QString &macAddress);
|
||||||
|
|
||||||
|
QNetworkReply *sendRequest(const QHostAddress &address, const QString &procedure, const QJsonObject ¶ms = QJsonObject(), const QString &requestId = QString());
|
||||||
|
|
||||||
|
static QString generateRequestId();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_connected = false;
|
bool m_connected = false;
|
||||||
QHostAddress m_hostAddresss;
|
QHostAddress m_hostAddresss;
|
||||||
|
|||||||
163
sma/sunnywebboxdiscovery.cpp
Normal file
163
sma/sunnywebboxdiscovery.cpp
Normal file
@ -0,0 +1,163 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
*
|
||||||
|
* Copyright 2013 - 2022, nymea GmbH
|
||||||
|
* Contact: contact@nymea.io
|
||||||
|
*
|
||||||
|
* This file is part of nymea.
|
||||||
|
* This project including source code and documentation is protected by
|
||||||
|
* copyright law, and remains the property of nymea GmbH. All rights, including
|
||||||
|
* reproduction, publication, editing and translation, are reserved. The use of
|
||||||
|
* this project is subject to the terms of a license agreement to be concluded
|
||||||
|
* with nymea GmbH in accordance with the terms of use of nymea GmbH, available
|
||||||
|
* under https://nymea.io/license
|
||||||
|
*
|
||||||
|
* GNU Lesser General Public License Usage
|
||||||
|
* Alternatively, this project may be redistributed and/or modified under the
|
||||||
|
* terms of the GNU Lesser General Public License as published by the Free
|
||||||
|
* Software Foundation; version 3. This project is distributed in the hope that
|
||||||
|
* it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this project. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
* For any further details and any questions please contact us under
|
||||||
|
* contact@nymea.io or see our FAQ/Licensing Information on
|
||||||
|
* https://nymea.io/license/faq
|
||||||
|
*
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
#include "sunnywebboxdiscovery.h"
|
||||||
|
#include "sunnywebbox.h"
|
||||||
|
|
||||||
|
#include "extern-plugininfo.h"
|
||||||
|
|
||||||
|
#include <QJsonDocument>
|
||||||
|
|
||||||
|
SunnyWebBoxDiscovery::SunnyWebBoxDiscovery(NetworkAccessManager *networkAccessManager, NetworkDeviceDiscovery *networkDeviceDiscovery, QObject *parent) :
|
||||||
|
QObject(parent),
|
||||||
|
m_networkAccessManager(networkAccessManager),
|
||||||
|
m_networkDeviceDiscovery(networkDeviceDiscovery)
|
||||||
|
{
|
||||||
|
m_gracePeriodTimer.setSingleShot(true);
|
||||||
|
m_gracePeriodTimer.setInterval(3000);
|
||||||
|
connect(&m_gracePeriodTimer, &QTimer::timeout, this, [this](){
|
||||||
|
qCDebug(dcSma()) << "Discovery: SunnyWebBox: Grace period timer triggered.";
|
||||||
|
finishDiscovery();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
void SunnyWebBoxDiscovery::startDiscovery()
|
||||||
|
{
|
||||||
|
// Clean up
|
||||||
|
m_discoveryResults.clear();
|
||||||
|
m_verifiedNetworkDeviceInfos.clear();
|
||||||
|
m_gracePeriodTimer.stop();
|
||||||
|
|
||||||
|
m_startDateTime = QDateTime::currentDateTime();
|
||||||
|
|
||||||
|
qCInfo(dcSma()) << "Discovery: SunnyWebBox: Start discovering the network...";
|
||||||
|
m_discoveryReply = m_networkDeviceDiscovery->discover();
|
||||||
|
|
||||||
|
// Check if all network device infos which might already be discovered here to save time...
|
||||||
|
foreach (const NetworkDeviceInfo &networkDeviceInfo, m_discoveryReply->networkDeviceInfos()) {
|
||||||
|
checkNetworkDevice(networkDeviceInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Test any network device beeing discovered
|
||||||
|
connect(m_discoveryReply, &NetworkDeviceDiscoveryReply::networkDeviceInfoAdded, this, &SunnyWebBoxDiscovery::checkNetworkDevice);
|
||||||
|
|
||||||
|
// When the network discovery has finished, we process the rest and give some time to finish the pending replies
|
||||||
|
connect(m_discoveryReply, &NetworkDeviceDiscoveryReply::finished, this, [=](){
|
||||||
|
// The network device discovery is done
|
||||||
|
m_discoveredNetworkDeviceInfos = m_discoveryReply->networkDeviceInfos();
|
||||||
|
m_discoveryReply = nullptr;
|
||||||
|
|
||||||
|
// Check if all network device infos have been verified
|
||||||
|
foreach (const NetworkDeviceInfo &networkDeviceInfo, m_discoveredNetworkDeviceInfos) {
|
||||||
|
if (m_verifiedNetworkDeviceInfos.contains(networkDeviceInfo))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
checkNetworkDevice(networkDeviceInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
// If there might be some response after the grace period time,
|
||||||
|
// we don't care any more since there might just waiting for some timeouts...
|
||||||
|
// If there would be a device, if would have responded.
|
||||||
|
m_gracePeriodTimer.start();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
NetworkDeviceInfos SunnyWebBoxDiscovery::discoveryResults() const
|
||||||
|
{
|
||||||
|
return m_discoveryResults;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SunnyWebBoxDiscovery::checkNetworkDevice(const NetworkDeviceInfo &networkDeviceInfo)
|
||||||
|
{
|
||||||
|
// Make a simple request and verify if it worked and the expected data gets returned.
|
||||||
|
SunnyWebBox webBox(m_networkAccessManager, networkDeviceInfo.address(), this);
|
||||||
|
QNetworkReply *reply = webBox.sendRequest(networkDeviceInfo.address(), "GetPlantOverview");
|
||||||
|
m_pendingReplies.append(reply);
|
||||||
|
connect(reply, &QNetworkReply::finished, this, [=](){
|
||||||
|
m_pendingReplies.removeAll(reply);
|
||||||
|
reply->deleteLater();
|
||||||
|
|
||||||
|
// Check HTTP reply
|
||||||
|
if (reply->error() != QNetworkReply::NoError) {
|
||||||
|
qCDebug(dcSma()) << "Discovery: SunnyWebBox: Checked" << networkDeviceInfo.address().toString()
|
||||||
|
<< "and a HTTP error occurred:" << reply->errorString() << "Continue...";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
QByteArray data = reply->readAll();
|
||||||
|
|
||||||
|
// Check JSON
|
||||||
|
QJsonParseError error;
|
||||||
|
QJsonDocument jsonDoc = QJsonDocument::fromJson(data, &error);
|
||||||
|
if (error.error != QJsonParseError::NoError) {
|
||||||
|
qCDebug(dcSma()) << "Discovery: SunnyWebBox: Checked" << networkDeviceInfo.address().toString()
|
||||||
|
<< "and received invalid JSON data:" << error.errorString() << "Continue...";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!jsonDoc.isObject()) {
|
||||||
|
qCDebug(dcSma()) << "Discovery: SunnyWebBox: Response JSON is not an Object" << networkDeviceInfo.address().toString() << "Continue...";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
QVariantMap map = jsonDoc.toVariant().toMap();
|
||||||
|
if (map["version"] != "1.0") {
|
||||||
|
qCDebug(dcSma()) << "Discovery: SunnyWebBox: API version not supported on" << networkDeviceInfo.address().toString() << "Continue...";;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (map.contains("proc") && map.contains("result")) {
|
||||||
|
// Ok, seems to be a Sunny WebBox we are talking to...add to the discovery results...
|
||||||
|
qCDebug(dcSma()) << "Discovery: SunnyWebBox: --> Found Sunny WebBox on" << networkDeviceInfo;
|
||||||
|
m_discoveryResults.append(networkDeviceInfo);
|
||||||
|
} else {
|
||||||
|
qCDebug(dcSma()) << "Discovery: SunnyWebBox: Missing proc or result value in response from" << networkDeviceInfo.address().toString() << "Continue...";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
void SunnyWebBoxDiscovery::cleanupPendingReplies()
|
||||||
|
{
|
||||||
|
foreach (QNetworkReply *reply, m_pendingReplies) {
|
||||||
|
m_pendingReplies.removeAll(reply);
|
||||||
|
reply->abort();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void SunnyWebBoxDiscovery::finishDiscovery()
|
||||||
|
{
|
||||||
|
qint64 durationMilliSeconds = QDateTime::currentMSecsSinceEpoch() - m_startDateTime.toMSecsSinceEpoch();
|
||||||
|
qCInfo(dcSma()) << "Discovery: SunnyWebBox: Finished the discovery process. Found" << m_discoveryResults.count()
|
||||||
|
<< "Sunny WebBoxes in" << QTime::fromMSecsSinceStartOfDay(durationMilliSeconds).toString("mm:ss.zzz");
|
||||||
|
m_gracePeriodTimer.stop();
|
||||||
|
cleanupPendingReplies();
|
||||||
|
emit discoveryFinished();
|
||||||
|
}
|
||||||
72
sma/sunnywebboxdiscovery.h
Normal file
72
sma/sunnywebboxdiscovery.h
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
*
|
||||||
|
* Copyright 2013 - 2022, nymea GmbH
|
||||||
|
* Contact: contact@nymea.io
|
||||||
|
*
|
||||||
|
* This file is part of nymea.
|
||||||
|
* This project including source code and documentation is protected by
|
||||||
|
* copyright law, and remains the property of nymea GmbH. All rights, including
|
||||||
|
* reproduction, publication, editing and translation, are reserved. The use of
|
||||||
|
* this project is subject to the terms of a license agreement to be concluded
|
||||||
|
* with nymea GmbH in accordance with the terms of use of nymea GmbH, available
|
||||||
|
* under https://nymea.io/license
|
||||||
|
*
|
||||||
|
* GNU Lesser General Public License Usage
|
||||||
|
* Alternatively, this project may be redistributed and/or modified under the
|
||||||
|
* terms of the GNU Lesser General Public License as published by the Free
|
||||||
|
* Software Foundation; version 3. This project is distributed in the hope that
|
||||||
|
* it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||||
|
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
|
* along with this project. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
* For any further details and any questions please contact us under
|
||||||
|
* contact@nymea.io or see our FAQ/Licensing Information on
|
||||||
|
* https://nymea.io/license/faq
|
||||||
|
*
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
#ifndef SUNNYWEBBOXDISCOVERY_H
|
||||||
|
#define SUNNYWEBBOXDISCOVERY_H
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
|
||||||
|
#include <network/networkaccessmanager.h>
|
||||||
|
#include <network/networkdevicediscovery.h>
|
||||||
|
|
||||||
|
class SunnyWebBoxDiscovery : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit SunnyWebBoxDiscovery(NetworkAccessManager *networkAccessManager, NetworkDeviceDiscovery *networkDeviceDiscovery, QObject *parent = nullptr);
|
||||||
|
|
||||||
|
void startDiscovery();
|
||||||
|
|
||||||
|
NetworkDeviceInfos discoveryResults() const;
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void discoveryFinished();
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void checkNetworkDevice(const NetworkDeviceInfo &networkDeviceInfo);
|
||||||
|
void cleanupPendingReplies();
|
||||||
|
void finishDiscovery();
|
||||||
|
|
||||||
|
private:
|
||||||
|
NetworkAccessManager *m_networkAccessManager = nullptr;
|
||||||
|
NetworkDeviceDiscovery *m_networkDeviceDiscovery = nullptr;
|
||||||
|
NetworkDeviceDiscoveryReply *m_discoveryReply = nullptr;
|
||||||
|
|
||||||
|
NetworkDeviceInfos m_discoveryResults;
|
||||||
|
NetworkDeviceInfos m_discoveredNetworkDeviceInfos;
|
||||||
|
NetworkDeviceInfos m_verifiedNetworkDeviceInfos;
|
||||||
|
|
||||||
|
QTimer m_gracePeriodTimer;
|
||||||
|
QDateTime m_startDateTime;
|
||||||
|
QList<QNetworkReply *> m_pendingReplies;
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // SUNNYWEBBOXDISCOVERY_H
|
||||||
Loading…
x
Reference in New Issue
Block a user