“Hi everyone! I’m working with the Arduino Online IDE, and I’m having trouble removing libraries that the IDE seems to be auto-including, specifically seeed_arduino_rpcwifi and rpcUnified. I’m only trying to use WiFiS3.h and WiFiClientSecure.h for my Arduino Uno R4 WiFi project, but the Online IDE keeps including the extra libraries, which leads to compilation errors.
Does anyone know how to prevent these libraries from being automatically included or how to fully remove them from my project? Thanks in advance!”
Hi @ditdvn9dzeqm. I'm going to ask you to provide the full verbose output from a compilation.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
- Open your sketch in Arduino Cloud Editor.
- Click the "Settings" icon at the bottom left corner of the page:
The "Settings" panel will open.
- Select the "Verbose output" radio button under the "Console verbosity" section of the "Settings" panel.
- Click the ✓ button in the Cloud Editor toolbar.
- Wait for the compilation to fail.
- If the black "Console" panel at the bottom of the Cloud Editor page is minimized, click the ˄ icon at the right side of the "Console" toolbar to expand it.
- Click the icon in the top right corner of the black "Console" panel at the bottom of the Cloud Editor page that looks like two pieces of paper ("Copy Console Output"):
- Open a forum reply here by clicking the "Reply" button.
- Click the
<CODE/>
icon on the post composer toolbar.
This will add the forum's code block markup (```
) to your reply to make sure the error messages are correctly formatted.
- Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the compilation output into the code block.
- Move the cursor outside of the code block markup before you add any additional text to your reply.
- Click the "Reply" button to post the output.
In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt
file and then attach that file to a reply here.
Click here for attachment instructions
- Open any text editor program.
- Paste the copied output into the text editor.
- Save the file in
.txt
format.
- Open a forum reply here by clicking the "Reply" button.
- Click the "Upload" icon () on the post composer toolbar:
The "Open" dialog will open.
- Select the
.txt
file you saved from the "Open" dialog.
- Click the "Open" button.
The dialog will close.
- Click the "Reply" button to publish the post.
Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt
file onto the post composer field to attach it.
/usr/local/bin/arduino-cli compile --fqbn arduino:renesas_uno:unor4wifi --build-cache-path /tmp --output-dir /tmp/222017643/build --build-path /tmp/arduino-build-5B34E19C1164BDCF8C7A72769EA77A0C -v /tmp/222017643/FreshSketch
FQBN: arduino:renesas_uno:unor4wifi
Using board 'unor4wifi' from platform in folder: /home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2
Using core 'arduino' from platform in folder: /home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2
Detecting libraries used...
/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -w -Os -g3 -fno-use-cxa-atexit -fno-rtti -fno-exceptions -nostdlib -DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI -std=gnu++17 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -w -x c++ -E -CC -DARDUINO=10607 "-DPROJECT_NAME=\"/tmp/arduino-build-5B34E19C1164BDCF8C7A72769EA77A0C/FreshSketch.ino\"" -DARDUINO_UNOWIFIR4 -DARDUINO_ARCH_RENESAS_UNO -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4/defines.txt -DCFG_TUSB_MCU=OPT_MCU_RAXXX -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/tinyusb -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/api/deprecated -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/api/deprecated-avr-comp -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4 -iprefix/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2 @/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4/includes.txt /tmp/arduino-build-5B34E19C1164BDCF8C7A72769EA77A0C/sketch/FreshSketch.ino.cpp -o /dev/null
Alternatives for WiFiS3.h: [WiFiS3@0.0.0]
ResolveLibrary(WiFiS3.h)
-> candidates: [WiFiS3@0.0.0]
/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -w -Os -g3 -fno-use-cxa-atexit -fno-rtti -fno-exceptions -nostdlib -DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI -std=gnu++17 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -w -x c++ -E -CC -DARDUINO=10607 "-DPROJECT_NAME=\"/tmp/arduino-build-5B34E19C1164BDCF8C7A72769EA77A0C/FreshSketch.ino\"" -DARDUINO_UNOWIFIR4 -DARDUINO_ARCH_RENESAS_UNO -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4/defines.txt -DCFG_TUSB_MCU=OPT_MCU_RAXXX -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/tinyusb -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/api/deprecated -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/api/deprecated-avr-comp -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4 -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/libraries/WiFiS3/src -iprefix/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2 @/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4/includes.txt /tmp/arduino-build-5B34E19C1164BDCF8C7A72769EA77A0C/sketch/FreshSketch.ino.cpp -o /dev/null
Alternatives for WiFiClientSecure.h: [Seeed Arduino rpcWiFi@1.1.0]
ResolveLibrary(WiFiClientSecure.h)
-> candidates: [Seeed Arduino rpcWiFi@1.1.0]
/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -w -Os -g3 -fno-use-cxa-atexit -fno-rtti -fno-exceptions -nostdlib -DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI -std=gnu++17 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -w -x c++ -E -CC -DARDUINO=10607 "-DPROJECT_NAME=\"/tmp/arduino-build-5B34E19C1164BDCF8C7A72769EA77A0C/FreshSketch.ino\"" -DARDUINO_UNOWIFIR4 -DARDUINO_ARCH_RENESAS_UNO -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4/defines.txt -DCFG_TUSB_MCU=OPT_MCU_RAXXX -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/tinyusb -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/api/deprecated -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/api/deprecated-avr-comp -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4 -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/libraries/WiFiS3/src -I/home/builder/Arduino/libraries/seeed_arduino_rpcwifi_1_1_0/src -iprefix/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2 @/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4/includes.txt /tmp/arduino-build-5B34E19C1164BDCF8C7A72769EA77A0C/sketch/FreshSketch.ino.cpp -o /dev/null
Alternatives for IPv6Address.h: [EtherSia@2.4.0]
ResolveLibrary(IPv6Address.h)
-> candidates: [EtherSia@2.4.0]
/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -w -Os -g3 -fno-use-cxa-atexit -fno-rtti -fno-exceptions -nostdlib -DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI -std=gnu++17 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -w -x c++ -E -CC -DARDUINO=10607 "-DPROJECT_NAME=\"/tmp/arduino-build-5B34E19C1164BDCF8C7A72769EA77A0C/FreshSketch.ino\"" -DARDUINO_UNOWIFIR4 -DARDUINO_ARCH_RENESAS_UNO -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4/defines.txt -DCFG_TUSB_MCU=OPT_MCU_RAXXX -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/tinyusb -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/api/deprecated -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/api/deprecated-avr-comp -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4 -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/libraries/WiFiS3/src -I/home/builder/Arduino/libraries/seeed_arduino_rpcwifi_1_1_0/src -I/home/builder/Arduino/libraries/ethersia_2_4_0/src -iprefix/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2 @/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4/includes.txt /tmp/arduino-build-5B34E19C1164BDCF8C7A72769EA77A0C/sketch/FreshSketch.ino.cpp -o /dev/null
Alternatives for seeed_rpcUnified.h: [Seeed Arduino rpcUnified@2.1.4]
ResolveLibrary(seeed_rpcUnified.h)
-> candidates: [Seeed Arduino rpcUnified@2.1.4]
/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -w -Os -g3 -fno-use-cxa-atexit -fno-rtti -fno-exceptions -nostdlib -DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI -std=gnu++17 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -w -x c++ -E -CC -DARDUINO=10607 "-DPROJECT_NAME=\"/tmp/arduino-build-5B34E19C1164BDCF8C7A72769EA77A0C/FreshSketch.ino\"" -DARDUINO_UNOWIFIR4 -DARDUINO_ARCH_RENESAS_UNO -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4/defines.txt -DCFG_TUSB_MCU=OPT_MCU_RAXXX -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/tinyusb -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/api/deprecated -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/api/deprecated-avr-comp -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4 -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/libraries/WiFiS3/src -I/home/builder/Arduino/libraries/seeed_arduino_rpcwifi_1_1_0/src -I/home/builder/Arduino/libraries/ethersia_2_4_0/src -I/home/builder/Arduino/libraries/seeed_arduino_rpcunified_2_1_4/src -iprefix/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2 @/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4/includes.txt /tmp/arduino-build-5B34E19C1164BDCF8C7A72769EA77A0C/sketch/FreshSketch.ino.cpp -o /dev/null
Alternatives for FreeRTOS.h: [STM32duino FreeRTOS@10.3.2 ESP32 BLE Arduino@1.0.1 FreeRTOS_SAMD51@1.2.0 FreeRTOS_SAMD21@2.3.0]
ResolveLibrary(FreeRTOS.h)
-> candidates: [STM32duino FreeRTOS@10.3.2 ESP32 BLE Arduino@1.0.1 FreeRTOS_SAMD51@1.2.0 FreeRTOS_SAMD21@2.3.0]
/home/builder/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++ -c -w -Os -g3 -fno-use-cxa-atexit -fno-rtti -fno-exceptions -nostdlib -DF_CPU=48000000 -DNO_USB -DBACKTRACE_SUPPORT -DARDUINO_UNOR4_WIFI -std=gnu++17 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsigned-char -ffunction-sections -fdata-sections -fmessage-length=0 -fno-builtin -w -x c++ -E -CC -DARDUINO=10607 "-DPROJECT_NAME=\"/tmp/arduino-build-5B34E19C1164BDCF8C7A72769EA77A0C/FreshSketch.ino\"" -DARDUINO_UNOWIFIR4 -DARDUINO_ARCH_RENESAS_UNO -DARDUINO_ARCH_RENESAS -DARDUINO_FSP -D_XOPEN_SOURCE=700 -mthumb @/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4/defines.txt -DCFG_TUSB_MCU=OPT_MCU_RAXXX -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/tinyusb -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/api/deprecated -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino/api/deprecated-avr-comp -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/cores/arduino -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4 -I/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/libraries/WiFiS3/src -I/home/builder/Arduino/libraries/seeed_arduino_rpcwifi_1_1_0/src -I/home/builder/Arduino/libraries/ethersia_2_4_0/src -I/home/builder/Arduino/libraries/seeed_arduino_rpcunified_2_1_4/src -I/home/builder/Arduino/libraries/freertos_samd51_1_2_0/src -iprefix/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2 @/home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/variants/UNOWIFIR4/includes.txt /tmp/arduino-build-5B34E19C1164BDCF8C7A72769EA77A0C/sketch/FreshSketch.ino.cpp -o /dev/null
Alternatives for Seeed_Arduino_FreeRTOS.h: []
ResolveLibrary(Seeed_Arduino_FreeRTOS.h)
-> candidates: []
Using library WiFiS3 at version 0.0.0 in folder: /home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/libraries/WiFiS3
Using library Seeed Arduino rpcWiFi at version 1.1.0 in folder: /home/builder/opt/libraries/seeed_arduino_rpcwifi_1_1_0
Using library EtherSia at version 2.4.0 in folder: /home/builder/opt/libraries/ethersia_2_4_0
Using library Seeed Arduino rpcUnified at version 2.1.4 in folder: /home/builder/opt/libraries/seeed_arduino_rpcunified_2_1_4
Using library FreeRTOS_SAMD51 at version 1.2.0 in folder: /home/builder/opt/libraries/freertos_samd51_1_2_0
Used library Version Path
WiFiS3 0.0.0 /home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2/libraries/WiFiS3
Seeed Arduino rpcWiFi 1.1.0 /home/builder/opt/libraries/seeed_arduino_rpcwifi_1_1_0
EtherSia 2.4.0 /home/builder/opt/libraries/ethersia_2_4_0
Seeed Arduino rpcUnified 2.1.4 /home/builder/opt/libraries/seeed_arduino_rpcunified_2_1_4
FreeRTOS_SAMD51 1.2.0 /home/builder/opt/libraries/freertos_samd51_1_2_0
Used platform Version Path
arduino:renesas_uno 1.2.2 /home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.2
In file included from /home/builder/Arduino/libraries/seeed_arduino_rpcunified_2_1_4/src/esp/esp_event_loop.h:22:0,
from /home/builder/Arduino/libraries/seeed_arduino_rpcunified_2_1_4/src/esp/esp_lib_unified.h:12,
from /home/builder/Arduino/libraries/seeed_arduino_rpcunified_2_1_4/src/seeed_rpcUnified.h:11,
from /home/builder/Arduino/libraries/seeed_arduino_rpcwifi_1_1_0/src/WiFiGeneric.h:26,
from /home/builder/Arduino/libraries/seeed_arduino_rpcwifi_1_1_0/src/WiFiSTA.h:28,
from /home/builder/Arduino/libraries/seeed_arduino_rpcwifi_1_1_0/src/WiFi.h:32,
from /home/builder/Arduino/libraries/seeed_arduino_rpcwifi_1_1_0/src/rpcWiFi.h:1,
from /home/builder/Arduino/libraries/seeed_arduino_rpcwifi_1_1_0/src/WiFiClientSecure.h:25,
from /tmp/222017643/FreshSketch/FreshSketch.ino:2:
/home/builder/Arduino/libraries/seeed_arduino_rpcunified_2_1_4/src/esp/esp_event.h:19:10: fatal error: Seeed_Arduino_FreeRTOS.h: No such file or directory
#include "Seeed_Arduino_FreeRTOS.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Multiple libraries were found for "FreeRTOS.h"
Used: /home/builder/opt/libraries/freertos_samd51_1_2_0
Not used: /home/builder/opt/libraries/stm32duino_freertos_10_3_2
Not used: /home/builder/opt/libraries/esp32_ble_arduino_1_0_1
Not used: /home/builder/opt/libraries/freertos_samd21_2_3_0
Error during build: exit status 1
OK, great. That makes the situation clear.
This is the cause of the problem. What made you think you should use that header file?
WiFiClientSecure.h
is a header file in the ESP32 boards platform's "NetworkClientSecure" library. So it is common to find an #include
directive for this header file in sketches that are written for the ESP32 boards. However, the "Arduino UNO R4 Boards" platform of the UNO R4 WiFi does not contain such a library. So when you compile a sketch that contains an #include
directive for WiFiClientSecure.h
for the UNO R4 WiFi board, Arduino Cloud Editor searches through all the Library Manager libraries for one that contains a header file of that name. It happens that the "Seeed Arduino rpcWiFi" library does contain a file of that name, so Cloud Editor compiles that one:
But the Seeed Arduino rpcWiFi library is not compatible with the UNO R4 WiFi board (and likely isn't an appropriate library for your project anyway) so the use of that library causes the compilation to fail.
The solution will be for you to remove the #include
directive for WiFiClientSecure.h
from your sketch.
If you need secure network communication for your project, you can use the functions provided by the WiFiSSLClient.h
header of the WiFiS3 library. A demonstration of the use of these functions is provided in the library's "WiFiWebClientSSL" example sketch. You can access that example by following these instructions:
- Click the icon on the left side of the Cloud Editor page that looks like a checklist ("Examples").
The "Examples" view will open in the left side panel of the Cloud Editor page.
- Select the "From Libraries" tab in the "Examples" view.
- Type
WiFiS3
in the "Search libraries" field of the "Examples" view.
- Click on the "WiFiS3 for renesas_uno" item in the list of search results.
The item will expand, showing a list of the library's examples.
- Select "WiFiWebClientSSL" from the list of examples.
The "WiFiWebClientSSL" example sketch will open in a new Cloud Editor page.
Thank you for a quick response. I will certainly try your suggestions.
1 Like