zhouhan0126/WIFIMANAGER-ESP32

Cant build on ESP32

JPaulMora opened this issue · 0 comments

The bord I'm using is called DOIT ESP32 DEVKIT V1


/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp: In member function 'boolean WiFiManager::autoConnect()':
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:161:36: error: 'class EspClass' has no member named 'getChipId'; did you mean 'getChipModel'?
   String ssid = "ESP" + String(ESP.getChipId());
                                    ^~~~~~~~~
                                    getChipModel
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp: In member function 'boolean WiFiManager::configPortalHasTimeout()':
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:187:37: error: 'wifi_softap_get_station_num' was not declared in this scope
     if(_configPortalTimeout == 0 || wifi_softap_get_station_num() > 0){
                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp: In member function 'boolean WiFiManager::startConfigPortal()':
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:195:36: error: 'class EspClass' has no member named 'getChipId'; did you mean 'getChipModel'?
   String ssid = "ESP" + String(ESP.getChipId());
                                    ^~~~~~~~~
                                    getChipModel
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp: In member function 'int WiFiManager::connectWifi(String, String)':
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:286:7: error: 'ETS_UART_INTR_DISABLE' was not declared in this scope
       ETS_UART_INTR_DISABLE();
       ^~~~~~~~~~~~~~~~~~~~~
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:286:7: note: suggested alternative: 'ESP_INTR_DISABLE'
       ETS_UART_INTR_DISABLE();
       ^~~~~~~~~~~~~~~~~~~~~
       ESP_INTR_DISABLE
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:287:7: error: 'wifi_station_disconnect' was not declared in this scope
       wifi_station_disconnect();
       ^~~~~~~~~~~~~~~~~~~~~~~
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:287:7: note: suggested alternative: 'wifi_action_rx_cb_t'
       wifi_station_disconnect();
       ^~~~~~~~~~~~~~~~~~~~~~~
       wifi_action_rx_cb_t
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:288:7: error: 'ETS_UART_INTR_ENABLE' was not declared in this scope
       ETS_UART_INTR_ENABLE();
       ^~~~~~~~~~~~~~~~~~~~
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:288:7: note: suggested alternative: 'ETS_UART1_INTR_SOURCE'
       ETS_UART_INTR_ENABLE();
       ^~~~~~~~~~~~~~~~~~~~
       ETS_UART1_INTR_SOURCE
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp: In member function 'void WiFiManager::startWPS()':
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:333:8: error: 'class WiFiClass' has no member named 'beginWPSConfig'; did you mean 'beginSmartConfig'?
   WiFi.beginWPSConfig();
        ^~~~~~~~~~~~~~
        beginSmartConfig
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp: In member function 'void WiFiManager::handleWifi(boolean)':
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:496:50: error: 'ENC_TYPE_NONE' was not declared in this scope
           if (WiFi.encryptionType(indices[i]) != ENC_TYPE_NONE) {
                                                  ^~~~~~~~~~~~~
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:496:50: note: suggested alternative: 'DNS_TYPE_DNAME'
           if (WiFi.encryptionType(indices[i]) != ENC_TYPE_NONE) {
                                                  ^~~~~~~~~~~~~
                                                  DNS_TYPE_DNAME
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp: In member function 'void WiFiManager::handleInfo()':
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:655:15: error: 'class EspClass' has no member named 'getChipId'; did you mean 'getChipModel'?
   page += ESP.getChipId();
               ^~~~~~~~~
               getChipModel
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:658:15: error: 'class EspClass' has no member named 'getFlashChipId'; did you mean 'getFlashChipMode'?
   page += ESP.getFlashChipId();
               ^~~~~~~~~~~~~~
               getFlashChipMode
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:664:15: error: 'class EspClass' has no member named 'getFlashChipRealSize'; did you mean 'getFlashChipSize'?
   page += ESP.getFlashChipRealSize();
               ^~~~~~~~~~~~~~~~~~~~
               getFlashChipSize
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp: In member function 'void WiFiManager::handleReset()':
/Users/macbook/Documents/Arduino/libraries/ESP32WiFiManager-master/WiFiManager.cpp:702:7: error: 'class EspClass' has no member named 'reset'; did you mean 'restart'?
   ESP.reset();
       ^~~~~
       restart

exit status 1


Compilation error: exit status 1