Allow setup to continue past mqtt if network/wifi is disabled (#5754)

This commit is contained in:
Jesse Hills committed 2023-11-15 12:45:02 +13:00
1 parent 2a20a5fc11
commit e0c7a02fbc
3 files changed
+11 -1

No files matched your search

+8
View File
@@ -29,6 +29,14 @@ bool is_connected() {
return false;
}
bool is_disabled() {
#ifdef USE_WIFI
if (wifi::global_wifi_component != nullptr)
return wifi::global_wifi_component->is_disabled();
#endif
return false;
}
network::IPAddress get_ip_address() {
#ifdef USE_ETHERNET
if (ethernet::global_eth_component != nullptr)