library WiFi claims to run on esp32 architecture(s)

userHead Tossapol.Tippo 2023-07-18 16:58:02 661 Views1 Replies

Please help me

I found connect Firebeetle ESP32 E cannot compile for WiFI masage error is:

 

WARNING: library WiFi claims to run on esp32 architecture(s) and may be incompatible with your current board which runs on DFRobot_FireBeetle-ESP32 architecture(s).
WARNING: library SPI claims to run on esp32 architecture(s) and may be incompatible with your current board which runs on DFRobot_FireBeetle-ESP32 architecture(s).
In file included from C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiAP.h:27:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:3:
C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiType.h:38:27: error: redeclaration of 'WL_NO_SHIELD'
    WL_NO_SHIELD        = 255,   // for compatibility with WiFi Shield library
                          ^
In file included from C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/WiFi.h:26:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:1:
C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/utility/wl_definitions.h:51:2: note: previous declaration 'wl_status_t WL_NO_SHIELD'
 WL_NO_SHIELD = 255,
 ^
In file included from C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiAP.h:27:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:3:
C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiType.h:39:27: error: redeclaration of 'WL_IDLE_STATUS'
    WL_IDLE_STATUS      = 0,
                          ^
In file included from C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/WiFi.h:26:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:1:
C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/utility/wl_definitions.h:52:9: note: previous declaration 'wl_status_t WL_IDLE_STATUS'
        WL_IDLE_STATUS = 0,
        ^
In file included from C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiAP.h:27:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:3:
C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiType.h:40:27: error: redeclaration of 'WL_NO_SSID_AVAIL'
    WL_NO_SSID_AVAIL    = 1,
                          ^
In file included from C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/WiFi.h:26:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:1:
C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/utility/wl_definitions.h:53:9: note: previous declaration 'wl_status_t WL_NO_SSID_AVAIL'
        WL_NO_SSID_AVAIL,
        ^
In file included from C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiAP.h:27:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:3:
C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiType.h:41:27: error: redeclaration of 'WL_SCAN_COMPLETED'
    WL_SCAN_COMPLETED   = 2,
                          ^
In file included from C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/WiFi.h:26:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:1:
C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/utility/wl_definitions.h:54:9: note: previous declaration 'wl_status_t WL_SCAN_COMPLETED'
        WL_SCAN_COMPLETED,
        ^
In file included from C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiAP.h:27:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:3:
C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiType.h:42:27: error: redeclaration of 'WL_CONNECTED'
    WL_CONNECTED        = 3,
                          ^
In file included from C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/WiFi.h:26:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:1:
C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/utility/wl_definitions.h:55:9: note: previous declaration 'wl_status_t WL_CONNECTED'
        WL_CONNECTED,
        ^
In file included from C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiAP.h:27:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:3:
C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiType.h:43:27: error: redeclaration of 'WL_CONNECT_FAILED'
    WL_CONNECT_FAILED   = 4,
                          ^
In file included from C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/WiFi.h:26:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:1:
C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/utility/wl_definitions.h:56:9: note: previous declaration 'wl_status_t WL_CONNECT_FAILED'
        WL_CONNECT_FAILED,
        ^
In file included from C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiAP.h:27:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:3:
C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiType.h:44:27: error: redeclaration of 'WL_CONNECTION_LOST'
    WL_CONNECTION_LOST  = 5,
                          ^
In file included from C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/WiFi.h:26:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:1:
C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/utility/wl_definitions.h:57:9: note: previous declaration 'wl_status_t WL_CONNECTION_LOST'
        WL_CONNECTION_LOST,
        ^
In file included from C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiAP.h:27:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:3:
C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiType.h:45:27: error: redeclaration of 'WL_DISCONNECTED'
    WL_DISCONNECTED     = 6
                          ^
In file included from C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/WiFi.h:26:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:1:
C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/utility/wl_definitions.h:58:9: note: previous declaration 'wl_status_t WL_DISCONNECTED'
        WL_DISCONNECTED
        ^
In file included from C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiAP.h:27:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:3:
C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiType.h:46:3: error: conflicting declaration 'typedef enum wl_status_t wl_status_t'
} wl_status_t;
  ^
In file included from C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/WiFi.h:26:0,
                from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:1:
C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi\src/utility/wl_definitions.h:59:3: note: previous declaration as 'typedef enum wl_status_t wl_status_t'
} wl_status_t;
  ^
In file included from C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino:3:0:
C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi\src/WiFiAP.h:49:5: error: 'IPv6Address' does not name a type
    IPv6Address softAPIPv6();
    ^
C:\Users\tossa\OneDrive\ETE_RES1\Pedagogy\Microcontroller\ESP32_Book\FireBase\ESP32_DATABASE\ESP32_DATABASE.ino: In function 'void setup()':
ESP32_DATABASE:19:8: error: 'class WiFiClass' has no member named 'softAP'
  WiFi.softAP(ssid, password);
       ^
ESP32_DATABASE:20:25: error: 'class WiFiClass' has no member named 'softAPIP'
  IPAddress myIP = WiFi.softAPIP();
                        ^
Multiple libraries were found for "WiFi.h"
Used: C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFi
Not used: C:\Users\tossa\OneDrive\Documents\Arduino\libraries\WiFiNINA
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
Not used: C:\Users\tossa\AppData\Local\Arduino15\packages\esp32\hardware\DFRobot_FireBeetle-ESP32\0.0.6\libraries\WiFi
exit status 1
'class WiFiClass' has no member named 'softAP' 

 

2023-07-18 19:45:45

Hi!

 

pls refer to the WIFI example of wiki.

 

https://wiki.dfrobot.com/FireBeetle_Board_ESP32_E_SKU_DFR0654

 

 

userHeadPic jenna