This commit is contained in:
jomjol
2022-01-01 08:53:55 +01:00
parent 98f9274085
commit eac513411e
7 changed files with 18 additions and 12 deletions

View File

@@ -192,7 +192,13 @@ bool ClassFlowMQTT::doFlow(string zwtime)
MQTTPublish(zw, resulttimestamp);
std::string json="{\"value\":"+result;
std::string json = "";
if (result.length() > 0)
json += "{\"value\":"+result;
else
json += "{\"value\":\"\"";
json += ",\"raw\":\""+resultraw;
json += "\",\"error\":\""+resulterror;
if (resultrate.length() > 0)