Fix compile error

This commit is contained in:
Theo Arends 2020-02-10 14:24:53 +01:00
parent 3de74e8850
commit f0272b339c
1 changed files with 7 additions and 1 deletions

View File

@ -640,8 +640,14 @@ void WifiManagerBegin(bool reset_only)
int channel = WIFI_SOFT_AP_CHANNEL;
if ((channel < 1) || (channel > 13)) { channel = 1; }
#ifdef ARDUINO_ESP8266_RELEASE_2_3_0
// bool softAP(const char* ssid, const char* passphrase = NULL, int channel = 1, int ssid_hidden = 0);
WiFi.softAP(my_hostname, WIFI_AP_PASSPHRASE, channel, 0);
#else
// bool softAP(const char* ssid, const char* passphrase = NULL, int channel = 1, int ssid_hidden = 0, int max_connection = 4);
WiFi.softAP(my_hostname, WIFI_AP_PASSPHRASE, channel, false, 1);
WiFi.softAP(my_hostname, WIFI_AP_PASSPHRASE, channel, 0, 1);
#endif
delay(500); // Without delay I've seen the IP address blank
/* Setup the DNS server redirecting all the domains to the apIP */