Browse Source

thermostat: qmqtt: use SIGNAL/SLOT

master
Richard Genoud 4 years ago
parent
commit
cf6ec744e7
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      soft/thermostat/src/mqttclient.cpp

+ 5
- 5
soft/thermostat/src/mqttclient.cpp View File

@ -19,11 +19,11 @@
MQTTClient::MQTTClient(const QHostAddress& host, const quint16 port,
QObject* parent) : QMQTT::Client(host, port, parent)
{
connect(this, &MQTTClient::connected, this, &MQTTClient::onConnected);
connect(this, &MQTTClient::subscribed, this, &MQTTClient::onSubscribed);
connect(this, &MQTTClient::received, this, &MQTTClient::onReceived);
connect(this, &MQTTClient::published, this, &MQTTClient::onPublished);
connect(this, &MQTTClient::error, this, &MQTTClient::onError);
connect(this, SIGNAL(connected(void)), this, SLOT(onConnected(void)));
connect(this, SIGNAL(subscribed(const QString&)), this, SLOT(onSubscribed(const QString&)));
connect(this, SIGNAL(received(const QMQTT::Message&)), this, SLOT(onReceived(const QMQTT::Message&)));
connect(this, SIGNAL(published(const QMQTT::Message&, quint16)), this, SLOT(onPublished(const QMQTT::Message&, quint16)));
connect(this, SIGNAL(error(const QMQTT::ClientError)), this, SLOT(onError(const QMQTT::ClientError)));
/*
* 2 more signals:


Loading…
Cancel
Save