Hello to all!
Recently I have started a project in arduino but it is pretty unknown this field (arduino) to me and I am trying to learn it. I have installed all the necessary parts for B4R and arduino (even the board manager for my module) and everything works smoothly. I have developed some code in both B4R and Arduino IDE. The problem that I face is how to integrate the wifi capabilities from B4R. I have managed to work from Arduino IDE, I can manage to use all the functions of the arduino, but I prefer to work from B4R as it will communicate with some others B4X application of mine.
After many hours of reading in the forum I ended up to use rWiFi101 (as I think that is the library that I will manage to use the WiFi capabilities). But even if I try to compile the program I receive that error: (see photo_1).
*I have added the library to arduino*
I have seen again that another had faced that problem again but I did not understand how he solved it.
Do I do something wrong? Should I use another library? Every help is pressious to me.
Thanks again for your time!
*Update: I have solved that problem! Now compiler reports another error. It asked me to install WiFiNiNa, as I did, and then compiler showed that error:
Recently I have started a project in arduino but it is pretty unknown this field (arduino) to me and I am trying to learn it. I have installed all the necessary parts for B4R and arduino (even the board manager for my module) and everything works smoothly. I have developed some code in both B4R and Arduino IDE. The problem that I face is how to integrate the wifi capabilities from B4R. I have managed to work from Arduino IDE, I can manage to use all the functions of the arduino, but I prefer to work from B4R as it will communicate with some others B4X application of mine.
After many hours of reading in the forum I ended up to use rWiFi101 (as I think that is the library that I will manage to use the WiFi capabilities). But even if I try to compile the program I receive that error: (see photo_1).
*I have added the library to arduino*
I have seen again that another had faced that problem again but I did not understand how he solved it.
Do I do something wrong? Should I use another library? Every help is pressious to me.
Thanks again for your time!
*Update: I have solved that problem! Now compiler reports another error. It asked me to install WiFiNiNa, as I did, and then compiler showed that error:
B4R Version: 4.00
Parsing code. (0.00s)
Building folders structure. (0.00s)
Compiling code. (0.00s)
Building project (0.01s)
Compiling (Arduino Giga R1) Error
In file included from C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFiClient.h:28:0,
from C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:35,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\Scheduler.cpp:2:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/socket/include/socket.h:1839:15: error: conflicting declaration of C function 'sint8 close(SOCKET)'
NMI_API sint8 close(SOCKET sock);
^~~~~
In file included from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/platform.h:26:0,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/FileHandle.h:25,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/macros.h:41,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\variants\GIGA/pins_arduino.h:2,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/Arduino.h:76,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:8,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\Scheduler.cpp:2:
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/mbed_retarget.h:749:9: note: previous declaration 'int close(int)'
int close(int fildes);
^~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFiClient.h:28:0,
from C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:35,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RArduino.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/socket/include/socket.h:1839:15: error: conflicting declaration of C function 'sint8 close(SOCKET)'
NMI_API sint8 close(SOCKET sock);
^~~~~
In file included from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/platform.h:26:0,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/FileHandle.h:25,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/macros.h:41,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\variants\GIGA/pins_arduino.h:2,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/Arduino.h:76,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:8,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RArduino.cpp:1:
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/mbed_retarget.h:749:9: note: previous declaration 'int close(int)'
int close(int fildes);
^~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFiClient.h:28:0,
from C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:35,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RCore.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/socket/include/socket.h:1839:15: error: conflicting declaration of C function 'sint8 close(SOCKET)'
NMI_API sint8 close(SOCKET sock);
^~~~~
In file included from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/platform.h:26:0,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/FileHandle.h:25,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/macros.h:41,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\variants\GIGA/pins_arduino.h:2,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/Arduino.h:76,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:8,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RCore.cpp:1:
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/mbed_retarget.h:749:9: note: previous declaration 'int close(int)'
int close(int fildes);
^~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFiClient.h:28:0,
from C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:35,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RStream.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/socket/include/socket.h:1839:15: error: conflicting declaration of C function 'sint8 close(SOCKET)'
NMI_API sint8 close(SOCKET sock);
^~~~~
In file included from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/platform.h:26:0,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/FileHandle.h:25,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/macros.h:41,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\variants\GIGA/pins_arduino.h:2,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/Arduino.h:76,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:8,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RStream.cpp:1:
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/mbed_retarget.h:749:9: note: previous declaration 'int close(int)'
int close(int fildes);
^~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFiClient.h:28:0,
from C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:35,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/socket/include/socket.h:1839:15: error: conflicting declaration of C function 'sint8 close(SOCKET)'
NMI_API sint8 close(SOCKET sock);
^~~~~
In file included from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/platform.h:26:0,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/FileHandle.h:25,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/macros.h:41,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\variants\GIGA/pins_arduino.h:2,
from C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/Arduino.h:76,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:8,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\AppData\Local\Arduino15\packages\arduino\hardware\mbed_giga\4.1.5\cores\arduino/mbed/platform/include/platform/mbed_retarget.h:749:9: note: previous declaration 'int close(int)'
int close(int fildes);
^~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:30:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_definitions.h:50:17: error: redeclaration of 'WL_NO_SHIELD'
WL_NO_SHIELD = 255,
^~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:40:2: note: previous declaration 'wl_status_t WL_NO_SHIELD'
WL_NO_SHIELD = 255,
^~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:30:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_definitions.h:52:26: error: redeclaration of 'WL_IDLE_STATUS'
WL_IDLE_STATUS = 0,
^
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:41:2: note: previous declaration 'wl_status_t WL_IDLE_STATUS'
WL_IDLE_STATUS = 0,
^~~~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:30:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_definitions.h:53:9: error: redeclaration of 'WL_NO_SSID_AVAIL'
WL_NO_SSID_AVAIL,
^~~~~~~~~~~~~~~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:42:2: note: previous declaration 'wl_status_t WL_NO_SSID_AVAIL'
WL_NO_SSID_AVAIL,
^~~~~~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:30:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_definitions.h:54:9: error: redeclaration of 'WL_SCAN_COMPLETED'
WL_SCAN_COMPLETED,
^~~~~~~~~~~~~~~~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:43:2: note: previous declaration 'wl_status_t WL_SCAN_COMPLETED'
WL_SCAN_COMPLETED,
^~~~~~~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:30:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_definitions.h:55:9: error: redeclaration of 'WL_CONNECTED'
WL_CONNECTED,
^~~~~~~~~~~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:44:2: note: previous declaration 'wl_status_t WL_CONNECTED'
WL_CONNECTED,
^~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:30:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_definitions.h:56:9: error: redeclaration of 'WL_CONNECT_FAILED'
WL_CONNECT_FAILED,
^~~~~~~~~~~~~~~~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:45:2: note: previous declaration 'wl_status_t WL_CONNECT_FAILED'
WL_CONNECT_FAILED,
^~~~~~~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:30:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_definitions.h:57:9: error: redeclaration of 'WL_CONNECTION_LOST'
WL_CONNECTION_LOST,
^~~~~~~~~~~~~~~~~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:46:2: note: previous declaration 'wl_status_t WL_CONNECTION_LOST'
WL_CONNECTION_LOST,
^~~~~~~~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:30:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_definitions.h:58:9: error: redeclaration of 'WL_DISCONNECTED'
WL_DISCONNECTED,
^~~~~~~~~~~~~~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:47:2: note: previous declaration 'wl_status_t WL_DISCONNECTED'
WL_DISCONNECTED,
^~~~~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:30:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_definitions.h:59:9: error: redeclaration of 'WL_AP_LISTENING'
WL_AP_LISTENING,
^~~~~~~~~~~~~~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:48:2: note: previous declaration 'wl_status_t WL_AP_LISTENING'
WL_AP_LISTENING,
^~~~~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:30:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_definitions.h:60:9: error: redeclaration of 'WL_AP_CONNECTED'
WL_AP_CONNECTED,
^~~~~~~~~~~~~~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:49:2: note: previous declaration 'wl_status_t WL_AP_CONNECTED'
WL_AP_CONNECTED,
^~~~~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:30:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_definitions.h:61:9: error: redeclaration of 'WL_AP_FAILED'
WL_AP_FAILED
^~~~~~~~~~~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:50:2: note: previous declaration 'wl_status_t WL_AP_FAILED'
WL_AP_FAILED,
^~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:30:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_definitions.h:62:3: error: conflicting declaration 'typedef enum wl_status_t wl_status_t'
} wl_status_t;
^~~~~~~~~~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:53:3: note: previous declaration as 'typedef enum wl_status_t wl_status_t'
} wl_status_t;
^~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:30:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_definitions.h:65:6: error: multiple definition of 'enum wl_enc_type'
enum wl_enc_type { /* Values map to 802.11 encryption suites... */
^~~~~~~~~~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:56:6: note: previous definition here
enum wl_enc_type { /* Values map to 802.11 encryption suites... */
^~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:31:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_types.h:51:31: error: redeclaration of 'WL_PING_DEST_UNREACHABLE'
WL_PING_DEST_UNREACHABLE = -1,
^
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:73:2: note: previous declaration 'wl_ping_result_t WL_PING_DEST_UNREACHABLE'
WL_PING_DEST_UNREACHABLE = -1,
^~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:31:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_types.h:52:22: error: redeclaration of 'WL_PING_TIMEOUT'
WL_PING_TIMEOUT = -2,
^
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:74:2: note: previous declaration 'wl_ping_result_t WL_PING_TIMEOUT'
WL_PING_TIMEOUT = -2,
^~~~~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:31:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_types.h:53:27: error: redeclaration of 'WL_PING_UNKNOWN_HOST'
WL_PING_UNKNOWN_HOST = -3,
^
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:75:2: note: previous declaration 'wl_ping_result_t WL_PING_UNKNOWN_HOST'
WL_PING_UNKNOWN_HOST = -3,
^~~~~~~~~~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:31:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_types.h:54:20: error: redeclaration of 'WL_PING_ERROR'
WL_PING_ERROR = -4
^
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:76:2: note: previous declaration 'wl_ping_result_t WL_PING_ERROR'
WL_PING_ERROR = -4
^~~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:31:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/utility/wl_types.h:55:3: error: conflicting declaration 'typedef enum wl_ping_result_t wl_ping_result_t'
} wl_ping_result_t;
^~~~~~~~~~~~~~~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:77:3: note: previous declaration as 'typedef enum wl_ping_result_t wl_ping_result_t'
} wl_ping_result_t;
^~~~~~~~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:35:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiClient.h:28:7: error: redefinition of 'class WiFiClient'
class WiFiClient : public Client {
^~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:35:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFiClient.h:31:7: note: previous definition of 'class WiFiClient'
class WiFiClient : public Client {
^~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:37:0,
from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiServer.h:32:7: error: redefinition of 'class WiFiServer'
class WiFiServer : public Server {
^~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:37:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFiServer.h:28:7: note: previous definition of 'class WiFiServer'
class WiFiServer : public Server {
^~~~~~~~~~
In file included from C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFiNINA.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:16:
C:\Users\user\Documents\Arduino\libraries\WiFiNINA\src/WiFi.h:42:7: error: redefinition of 'class WiFiClass'
class WiFiClass
^~~~~~~~~
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:23:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Users\user\Documents\Arduino\libraries\WiFi101\src/WiFi101.h:79:7: note: previous definition of 'class WiFiClass'
class WiFiClass
^~~~~~~~~
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp: In function 'void sConn()':
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:27:10: error: 'status' was not declared in this scope
while (status != WL_CONNECTED) {
^~~~~~
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:27:10: note: suggested alternative: 'statvfs'
while (status != WL_CONNECTED) {
^~~~~~
statvfs
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:29:20: error: 'ssid' was not declared in this scope
Serial.println(ssid);
^~~~
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:29:20: note: suggested alternative: 'send'
Serial.println(ssid);
^~~~
send
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:31:31: error: 'pass' was not declared in this scope
status = WiFi.begin(ssid, pass);
^~~~
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:31:31: note: suggested alternative: 'labs'
status = WiFi.begin(ssid, pass);
^~~~
labs
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:37:11: error: '_bConnected' is not a member of 'b4r_main'
b4r_main::_bConnected = True;
^~~~~~~~~~~
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:37:25: error: 'True' was not declared in this scope
b4r_main::_bConnected = True;
^~~~
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:37:25: note: suggested alternative: 'free'
b4r_main::_bConnected = True;
^~~~
free
In file included from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\B4RDefines.h:26:0,
from C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:1:
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp: In static member function 'static void b4r_main::_appstart()':
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\rCore.h:461:102: error: too many arguments to function 'void sConn()'
#define /*Object* RunNative (FunctionObjectObject Method, Object* Arg);*/ Common_RunNative(F,A) F(A)
^
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:46:1: note: in expansion of macro 'Common_RunNative'
Common_RunNative(sConn,be_ann9_6.wrapPointer(""));
^
C:\Temp\ArduinoProjects\B4REspTest1\Objects\src\b4r_main.cpp:18:6: note: declared here
void sConn() {
^~~~~
Error during build: exit status 1
Attachments
Last edited: