add debug info

This commit is contained in:
2026-05-13 23:14:21 +02:00
parent 6cdae78c2a
commit 5e4712503b
+3 -3
View File
@@ -245,7 +245,7 @@ void Pws2mqtt::parseData(QList<std::pair<QString, QString>> queryList)
QByteArray value = pair.second.toLatin1();
float fValue = value.toDouble();
if (this->deviceProperties.contains(name))
if (propertyName.contains(name))
{
#ifdef WITH_MQTT
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, "propertyList[name] = " + propertyList[name]);
debug(DEBUGMACRO, "propertyList[name] = " + propertyList[name], DEBUG);
}
propertiesValue["windchill"] = calc.computeUTCI(propertiesValue["tempf"], propertiesValue["vent"], propertiesValue["solarradiation"], propertiesValue["humidity"]);
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);
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);