From b5e0223602b89d243ea947856bc267e789b31b32 Mon Sep 17 00:00:00 2001 From: DigiH Date: Sun, 5 May 2024 21:43:45 +0200 Subject: [PATCH] [WebUI] Specific Gravity SG added to BLE display routine (#1939) --- main/ZwebUI.ino | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/main/ZwebUI.ino b/main/ZwebUI.ino index 4918975..06d5dec 100644 --- a/main/ZwebUI.ino +++ b/main/ZwebUI.ino @@ -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;