Arduino UNO R4 WiFi has been Offline for a long time

Hi, I need some help.(Pardon my one-word English)

I recently got an Arduino Uno R4 Wifi and I want to try out the IoT Cloud feature and others, but no matter what I do, the board stays offline.
The firmware version is 0.4.1 and I am using a different cable and nothing has changed.

I can upload sketch etc via cloud, but when I open Serial Monitor it is forever 'Connecting...' was displayed. I reset the board and nothing happens.

Please help me!!!!!!

/* 
  Sketch generated by the Arduino IoT Cloud Thing "Untitled"
  https://create.arduino.cc/cloud/things/2bcf009c-5a8b-483f-a1f8-f9a8fb9e2db9 

  Arduino IoT Cloud Variables description

  The following variables are automatically generated and updated when changes are made to the Thing

  bool led;

  Variables which are marked as READ/WRITE in the Cloud Thing will also have functions
  which are called when their values are changed from the Dashboard.
  These functions are generated with the Thing and added at the end of this sketch.
*/

#include "thingProperties.h"

const int ledPin = 13; // 使用するピンを定義します

void setup() {
  // Initialize serial and wait for port to open:
  Serial.begin(9600);
  // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
  delay(1500); 

  // Defined in thingProperties.h
  initProperties();

  // Connect to Arduino IoT Cloud
  ArduinoCloud.begin(ArduinoIoTPreferredConnection);
  
  /*
     The following function allows you to obtain more information
     related to the state of network and IoT Cloud connection and errors
     the higher number the more granular information you’ll get.
     The default is 0 (only errors).
     Maximum is 4
 */
  setDebugMessageLevel(2);
  ArduinoCloud.printDebugInfo();
}

void loop() {
  ArduinoCloud.update();
  // Your code here 
  // LEDの状態を更新
  if (led) {
    digitalWrite(ledPin, HIGH);
  } else {
    digitalWrite(ledPin, LOW);
  }
  
  
}


/*
  Since Led is READ_WRITE variable, onLedChange() is
  executed every time a new value is received from IoT Cloud.
*/
void onLedChange()  {
  // Add your code here to act upon Led change
}

Try the steps below:

  1. Install the Create Agent with admin right if using Windows machine,
  2. Update the connectivity module firmware on UNO R4 WiFi using the IDE.
  3. Use 2.4Ghz wifi and ensure that the SSID and Password are not too long and does not have special characters.

Check also Arduino Uno R4 WIFI OFFLINE - #5 by ptillisch

1 Like

I still have not been able to solve the problem.
I am creating it on a Mac and I did the steps you gave me and the serial monitor showed this.

SHA256: 0 bytes (of 0) read
***** Arduino IoT Cloud - configuration info *****
Device ID: 0f6bab3b-3d2b-40c1-99ba-6c00d0e71f60
MQTT Broker: iot.arduino.cc:8883
WiFi.status(): 0
Current WiFi Firmware: 0.4.1
Connection to "JIKKEN" failed
Retrying in  "500" milliseconds
Connection to "JIKKEN" failed
Retrying in  "500" milliseconds

This is repeating. What should I do?

Serial monitor on cloud has always been as pictured.

None of the buttons respond except the magnifying glass in the upper right corner!

Can you create a WiFi hotspot with your phone and test with this to check if it will connect?

It looked like it wasn't connected to the 2.4Ghz wifi properly. Thanks to your help, it worked! Thank you so much!

1 Like

Hi @kikikai12.

The bug that caused Cloud Editor's Serial Monitor to be stuck in the "Connecting..." state has now been fixed.

Please let us know if you still experience any problems while using it.

I apologize for any inconvenience this has caused.

What do you mean? I'm also experiensing disconnections from WiFi after about 24 hours of connection and the Uno R4 wifi is not able to reconnect...
Can you suggest a solution?

1 Like

@asafvadai you already have a dedicated topic for your problem:

Please don't add replies about it to other people's topics.

There is no "also" about it. @kikikai12's problem was that the board never connected to the Arduino Cloud servers (or the Wi-Fi network at all it turned out). Your problem is that your board connects, but then later disconnects.

Even though they happen to be distantly related in that they both involve a connection, these problems are completely different, and must have completely different causes. So you are only wasting everyone's time by bringing up your problem here. Please be respectful of the time of the people who provide assistance here on the forum.

Thanks in advance for your cooperation.