[WebUI] Specific Gravity SG added to BLE display routine (#1939)

This commit is contained in:
DigiH
2024-05-05 21:43:45 +02:00
committed by GitHub
parent f27855527e
commit b5e0223602

View File

@@ -2148,6 +2148,15 @@ void webUIPubPrint(const char* topicori, JsonObject& data) {
properties[property] = "wake: " + wakestr + " ";
}
if (data.containsKey("gravity")) {
property++;
property++;
char sgrav[6];
float gravityf = data["gravity"];
dtostrf(gravityf, 5, 3, sgrav);
properties[property] = "SG: " + (String)sgrav + " ";
}
} else if (data["type"] == "BBQ") {
String tempcstr = "";
int j = 7;