diff --git a/main.cpp b/main.cpp index d155fef..23c5396 100644 --- a/main.cpp +++ b/main.cpp @@ -25,7 +25,7 @@ #define BROKER_ADDRESS "localhost" #define MQTT_PORT 1883; -uint debugLevel = INFO | NOTICE | INFO | WARNING | ERROR | ALERT; +uint debugLevel = DEBUG | INFO | NOTICE | INFO | WARNING | ERROR | ALERT; QByteArray toFollow; //class MqttClient; @@ -37,6 +37,7 @@ Pws2mqtt *pws2mqtt; MqttClient *mqttClient; QHttpServer *httpServer; + int main(int argc, char *argv[]) { diff --git a/pws2mqtt.cpp b/pws2mqtt.cpp index 5ca6d27..8d91f0a 100644 --- a/pws2mqtt.cpp +++ b/pws2mqtt.cpp @@ -110,10 +110,8 @@ void Pws2mqtt::listeningHttp() if (!port) { debug(DEBUGMACRO, "Http Server failed to listen on a port.", ERROR); - //return 0; } debug(DEBUGMACRO, "Listening on port " + QString::number(port)); - } void Pws2mqtt::parseData(QList> queryList) @@ -285,7 +283,6 @@ void Pws2mqtt::parseData(QList> queryList) { jsonString = jsonString +", " + deviceString + "}}"; mqttClient->send_message(jsonString); - //debug(DEBUGMACRO, "sent => " + jsonString, DEBUG); }else { debug(DEBUGMACRO, "No values to send", DEBUG);