Browse Source

Merge branch 'avendretter-feat/ISSUE-1045_Add-version-to-api' into development03

pull/1069/head
lumapu 2 years ago
parent
commit
a893ae17ef
  1. 2
      src/web/RestApi.h

2
src/web/RestApi.h

@ -197,6 +197,8 @@ class RestApi {
void getGeneric(AsyncWebServerRequest *request, JsonObject obj) {
obj[F("wifi_rssi")] = (WiFi.status() != WL_CONNECTED) ? 0 : WiFi.RSSI();
obj[F("ts_uptime")] = mApp->getUptime();
obj[F("version")] = String(mApp->getVersion());
obj[F("build")] = String(AUTO_GIT_HASH);
obj[F("menu_prot")] = mApp->getProtection(request);
obj[F("menu_mask")] = (uint16_t)(mConfig->sys.protectionMask );
obj[F("menu_protEn")] = (bool) (strlen(mConfig->sys.adminPwd) > 0);

Loading…
Cancel
Save