[WebUI] Specific Gravity SG added to BLE display routine (#1939)
This commit is contained in:
1 parent
f27855527e
commit
b5e0223602
1 file changed
+9
@@ -2148,6 +2148,15 @@ void webUIPubPrint(const char* topicori, JsonObject& data) {
|
|||||||
properties[property] = "wake: " + wakestr + " ";
|
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") {
|
} else if (data["type"] == "BBQ") {
|
||||||
String tempcstr = "";
|
String tempcstr = "";
|
||||||
int j = 7;
|
int j = 7;
|
||||||
|
|||||||
Reference in new issue
Block a user