mirror of
https://github.com/1technophile/OpenMQTTGateway.git
synced 2026-02-20 00:32:04 +01:00
[WebUI] Specific Gravity SG added to BLE display routine (#1939)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user