added different pinout for ESP32 #286

This commit is contained in:
lumapu 2022-10-20 08:41:47 +02:00
parent 427d1a9ba5
commit 202d883f38
2 changed files with 58 additions and 21 deletions

View file

@ -147,6 +147,11 @@ void webApi::getSystem(JsonObject obj) {
obj[F("ts_sun_upd")] = mApp->getLatestSunTimestamp();
obj[F("wifi_rssi")] = WiFi.RSSI();
obj[F("disclaimer")] = mConfig->disclaimer;
#if defined(ESP32)
obj[F("esp_type")] = F("ESP32");
#else
obj[F("esp_type")] = F("ESP8266");
#endif
}