Fixed 8266 build

This commit is contained in:
Gunnar Skjold
2024-03-26 10:40:37 +01:00
parent 4068f127ba
commit 4093b64dd0
2 changed files with 10 additions and 1 deletions

View File

@@ -14,7 +14,9 @@
#define CONNECTION_TIMEOUT 30000
#define RECONNECT_TIMEOUT 5000
#if defined(ESP32)
esp_err_t set_esp_interface_ip(esp_interface_t interface, IPAddress local_ip=INADDR_NONE, IPAddress gateway=INADDR_NONE, IPAddress subnet=INADDR_NONE, IPAddress dhcp_lease_start=INADDR_NONE);
#endif
class WiFiClientConnectionHandler : public ConnectionHandler {
public:
@@ -46,7 +48,9 @@ private:
unsigned long lastRetry = 0;
wl_status_t begin(const char* ssid, const char* psk);
#if defined(ESP32)
void wifi_sta_config(wifi_config_t * wifi_config, const char * ssid=NULL, const char * password=NULL, const uint8_t * bssid=NULL, uint8_t channel=0, wifi_auth_mode_t min_security=WIFI_AUTH_WPA2_PSK, wifi_scan_method_t scan_method=WIFI_ALL_CHANNEL_SCAN, wifi_sort_method_t sort_method=WIFI_CONNECT_AP_BY_SIGNAL, uint16_t listen_interval=0, bool pmf_required=false);
#endif
};
#endif