Problem uploading the arduino r4 wifi code

Everything was working fine, I wanted to do a test to see if a relay worked so I deleted my code and put the test code and it no longer worked and I got an error and I don't know what to do to make it work.

/usr/local/bin/arduino-cli compile --fqbn arduino:renesas_uno:unor4wifi --build-cache-path /tmp --output-dir /tmp/150966437/build --build-path /tmp/arduino-build-64F793809098456760C3E9225BC922F2  /tmp/150966437/Proyecto_meb_jun15a
[warn] WARNING: library ArduinoGraphics claims to run on samd architecture(s) and may be incompatible with your current board which runs on renesas_uno architecture(s).

In file included from /tmp/150966437/Proyecto_meb_jun15a/Proyecto_meb_jun15a.ino:23:0:
/tmp/150966437/Proyecto_meb_jun15a/thingProperties.h:6:25: error: 'SECRET_SSID' was not declared in this scope
 const char SSID[]     = SECRET_SSID;    // Network SSID (name)
                         ^~~~~~~~~~~
/tmp/150966437/Proyecto_meb_jun15a/thingProperties.h:6:25: note: suggested alternative: '_GETSSID'
 const char SSID[]     = SECRET_SSID;    // Network SSID (name)
                         ^~~~~~~~~~~
                         _GETSSID
/tmp/150966437/Proyecto_meb_jun15a/thingProperties.h:7:25: error: 'SECRET_OPTIONAL_PASS' was not declared in this scope
 const char PASS[]     = SECRET_OPTIONAL_PASS;    // Network password (use for WPA, or use as key for WEP)
                         ^~~~~~~~~~~~~~~~~~~~
Multiple libraries were found for "RTC.h"
  Used: /home/builder/.arduino15/packages/arduino/hardware/renesas_uno/1.2.0/libraries/RTC
  Not used: /home/builder/opt/libraries/m5stickc_0_2_9
  Not used: /home/builder/opt/libraries/m5core2_0_1_9
  Not used: /home/builder/opt/libraries/m5stickcplus_0_1_0
  Not used: /home/builder/opt/libraries/m5station_0_0_1
Error during build: exit status 1

Hi @alfredomontenri. This error occurs when you have not configured the network credentials for the Arduino Cloud IoT Thing.

I'll provide instructions you can follow to configure the credentials:

  1. Open the Thing in Arduino Cloud as usual.
  2. Select the "Setup" tab at the top of the Thing page.
  3. Click the "Configure" button under the "Network" section of the page.
    The "Configure Network" dialog will open.
  4. Type the SSID of your Wi-Fi access point into the "Wi-Fi Name" field of the dialog.
  5. Type the password of your Wi-Fi access point into the "Password" field of the dialog.
  6. Click the "Save" button in the dialog.
    The dialog will close.

Now try uploading the Thing sketch to your board again. Hopefully this time the error won't occur and everything will work as expected.


Please let me know if you have any questions or problems while following those instructions.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.