Show bbqkees model - #1815

This commit is contained in:
proddy
2024-07-10 12:53:18 +02:00
parent 6f0062be5c
commit 4f40a3d990
7 changed files with 36 additions and 9 deletions

View File

@@ -1750,4 +1750,18 @@ bool System::ntp_connected() {
return ntp_connected_;
}
String System::getBBQKeesGatewayDetails() {
#ifndef EMSESP_STANDALONE
if (!EMSESP::nvs_.isKey("mfg")) {
return "";
}
if (EMSESP::nvs_.getString("mfg") != "BBQKees") {
return "";
}
return "BBQKees Gateway Model " + EMSESP::nvs_.getString("model") + " v" + EMSESP::nvs_.getString("hwrevision") + "/" + EMSESP::nvs_.getString("batch");
#else
return "";
#endif
}
} // namespace emsesp