|
@ -805,6 +805,8 @@ class RestApi { |
|
|
bool isWired = mApp->isWiredConnection(); |
|
|
bool isWired = mApp->isWiredConnection(); |
|
|
if(!isWired) |
|
|
if(!isWired) |
|
|
obj[F("wifi_channel")] = WiFi.channel(); |
|
|
obj[F("wifi_channel")] = WiFi.channel(); |
|
|
|
|
|
|
|
|
|
|
|
obj[F("wired")] = isWired; |
|
|
#else |
|
|
#else |
|
|
obj[F("wifi_channel")] = WiFi.channel(); |
|
|
obj[F("wifi_channel")] = WiFi.channel(); |
|
|
#endif |
|
|
#endif |
|
@ -814,10 +816,6 @@ class RestApi { |
|
|
obj[F("hidd")] = mConfig->sys.isHidden; |
|
|
obj[F("hidd")] = mConfig->sys.isHidden; |
|
|
obj[F("mac")] = mApp->getMac(); |
|
|
obj[F("mac")] = mApp->getMac(); |
|
|
obj[F("ip")] = mApp->getIp(); |
|
|
obj[F("ip")] = mApp->getIp(); |
|
|
|
|
|
|
|
|
#if defined(ESP32) |
|
|
|
|
|
obj[F("wired")] = isWired; |
|
|
|
|
|
#endif |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void getChipInfo(JsonObject obj) { |
|
|
void getChipInfo(JsonObject obj) { |
|
|