add unique id

Zeroconf TXT record is missing
This commit is contained in:
brindosch
2017-06-17 23:27:41 +02:00
parent a7f72a7bf2
commit 91c7637a2b
4 changed files with 35 additions and 19 deletions

View File

@@ -181,6 +181,9 @@ public:
QJsonObject getConfig() { return _qjsonConfig; };
/// unique id per instance
QString id;
int getLatchTime() const;
public slots:

View File

@@ -8,17 +8,19 @@
// hyperion includes
#include <utils/Logger.h>
#include <hyperion/Hyperion.h>
class Stats : public QObject
{
Q_OBJECT
public:
Stats();
Stats();
~Stats();
private:
Logger* _log;
Hyperion* _hyperion;
QString _hash = "";
QByteArray _ba;
QNetworkRequest _req;
@@ -27,6 +29,7 @@ private:
bool trigger(bool set = false);
private slots:
void initialExec();
void sendHTTP();
void sendHTTPp();
void resolveReply(QNetworkReply *reply);