-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR #189: Amperfied: Update to networkdevice interface
- Loading branch information
Showing
4 changed files
with
93 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * | ||
* | ||
* Copyright 2013 - 2023, nymea GmbH | ||
* Copyright 2013 - 2024, nymea GmbH | ||
* Contact: [email protected] | ||
* | ||
* This file is part of nymea. | ||
|
@@ -47,6 +47,7 @@ class AmperfiedConnectDiscovery : public QObject | |
quint16 firmwareVersion; | ||
quint16 slaveId; | ||
QString modelName; | ||
QHostAddress address; | ||
NetworkDeviceInfo networkDeviceInfo; | ||
}; | ||
|
||
|
@@ -65,10 +66,11 @@ class AmperfiedConnectDiscovery : public QObject | |
QString m_nameFilter; | ||
|
||
QList<AmperfiedModbusTcpConnection *> m_connections; | ||
NetworkDeviceInfos m_networkDeviceInfos; | ||
|
||
QList<Result> m_discoveryResults; | ||
|
||
void checkNetworkDevice(const NetworkDeviceInfo &networkDeviceInfo); | ||
void checkNetworkDevice(const QHostAddress &address); | ||
void cleanupConnection(AmperfiedModbusTcpConnection *connection); | ||
|
||
void finishDiscovery(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters