„hr50-remote-display.ino“ ändern

This commit is contained in:
Michael Clemens 2021-11-12 00:39:00 +01:00
parent 360b65f600
commit 5fabfd6eb5

View File

@ -50,7 +50,7 @@ void loop() {
deserializeJson(doc, payload); deserializeJson(doc, payload);
JsonObject obj = doc.as<JsonObject>(); JsonObject obj = doc.as<JsonObject>();
if ( obj != NULL ) { if ( obj != NULL and obj["PTT"].as<String>() != "ERR") {
String band = obj["BND"].as<String>(); String band = obj["BND"].as<String>();
String pep = obj["PEP"].as<String>(); String pep = obj["PEP"].as<String>();
String avg = obj["AVG"].as<String>(); String avg = obj["AVG"].as<String>();