add debug info
This commit is contained in:
+3
-3
@@ -245,7 +245,7 @@ void Pws2mqtt::parseData(QList<std::pair<QString, QString>> queryList)
|
|||||||
QByteArray value = pair.second.toLatin1();
|
QByteArray value = pair.second.toLatin1();
|
||||||
float fValue = value.toDouble();
|
float fValue = value.toDouble();
|
||||||
|
|
||||||
if (this->deviceProperties.contains(name))
|
if (propertyName.contains(name))
|
||||||
{
|
{
|
||||||
#ifdef WITH_MQTT
|
#ifdef WITH_MQTT
|
||||||
bool propertyFlag = false;
|
bool propertyFlag = false;
|
||||||
@@ -454,7 +454,7 @@ void Pws2mqtt::parseData(QList<std::pair<QString, QString>> queryList)
|
|||||||
debug (DEBUGMACRO, "solarradiations : " + QByteArray::number(propertyValue), DEBUG);
|
debug (DEBUGMACRO, "solarradiations : " + QByteArray::number(propertyValue), DEBUG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
debug(DEBUGMACRO, "propertyList[name] = " + propertyList[name]);
|
debug(DEBUGMACRO, "propertyList[name] = " + propertyList[name], DEBUG);
|
||||||
}
|
}
|
||||||
propertiesValue["windchill"] = calc.computeUTCI(propertiesValue["tempf"], propertiesValue["vent"], propertiesValue["solarradiation"], propertiesValue["humidity"]);
|
propertiesValue["windchill"] = calc.computeUTCI(propertiesValue["tempf"], propertiesValue["vent"], propertiesValue["solarradiation"], propertiesValue["humidity"]);
|
||||||
propertyList["windchill"] = formatNotifString(propertyName["windchill"], QByteArray::number(propertiesValue["windchill"]));
|
propertyList["windchill"] = formatNotifString(propertyName["windchill"], QByteArray::number(propertiesValue["windchill"]));
|
||||||
@@ -482,7 +482,7 @@ void Pws2mqtt::parseData(QList<std::pair<QString, QString>> queryList)
|
|||||||
debug(DEBUGMACRO, "looping for propertyList", DEBUG);
|
debug(DEBUGMACRO, "looping for propertyList", DEBUG);
|
||||||
for (auto [name,value]: propertyList.asKeyValueRange())
|
for (auto [name,value]: propertyList.asKeyValueRange())
|
||||||
{
|
{
|
||||||
debug(DEBUGMACRO, "name = " + name + " => value = " + value);
|
debug(DEBUGMACRO, "name = " + name + " => value = " + value, DEBUG);
|
||||||
}
|
}
|
||||||
debug(DEBUGMACRO, "looping to fill notif", DEBUG);
|
debug(DEBUGMACRO, "looping to fill notif", DEBUG);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user