|
|
@ -24,7 +24,7 @@ MainWindow::MainWindow(QWidget *parent) : |
|
|
|
|
|
|
|
Settings *s = Settings::getInstance(); |
|
|
|
|
|
|
|
mqttclient = new MQTTSubcriber(QHostAddress("192.168.1.2"), 1883); |
|
|
|
mqttclient = new MQTTSubcriber(QHostAddress(s->m_broker.address), s->m_broker.port); |
|
|
|
|
|
|
|
for (int i = 0; i < s->nbZones(); i++) { |
|
|
|
zone = new ZoneItem(s->m_rooms.at(i).name, this); |
|
|
|