Arduino Cloud Connection to "(network name)" failed Retrying in "500" milliseconds

I am using a Arduino Nano 33 IoT for a schoolproject with Arduino Cloud using the school wifi.
My Arduino worked without issue up until 2024.
Every time I try to start my program it keeps responding with:
Connection to "(network name)" failed

Retrying in "500" milliseconds

I am certain I'm using the correct credentials but I cannot seem to connect no matter what I try.

How can I fix this issue?

Have you checked with the shcool's IT team if they changed anything in terms of security?

have you tried to see if the Nano 33 IoT would connect to another WiFi (and this if it is not damaged)?

I have checked with the IT team, they say that there should not be anything stopping me from connecting.
I have also tried different networks the school provides and even my own hotspot, none of which have worked.
I tried with several different Arduino Nano's too and received the same result but I have yet to try with my home wifi.

I was wondering if Arduino changed it's policy recently that somehow prevents me from connecting, since my Arduino always shows as offline even when in use.

what sketch did you use (without sharing the pwd)

I am using the base sketch in Arduino Cloud

can you try to upload this code and open the Serial monitor at 115200 bauds

what do you see?

#include <WiFiNINA.h>
const char * ssid = "xxx";  // your WiFi network SSID (name)
const char * pass = "xxx";  // your WiFi network password (WPA or WEP)

void setup() {
  Serial.begin(115200);
  while (!Serial);

  Serial.print("Attempting to connect to your WiFi network named ");
  Serial.println(ssid);
  while (WiFi.begin(ssid, pass) != WL_CONNECTED) {
    Serial.write('.');
    delay(2000);
  }
  Serial.println("\nYou're connected to the network");
}

void loop() {}

I found the answer!
Apparently my Arduino couldn't connect to a 5GHz wifi but when I switched to a 2.5GHz hotspot everything worked fine.
My theory is that during new year break my school switched their wifi to 5GHz instead of 2.5Ghz.

so you did not tell the whole story here :slight_smile:

yeah, "Arduinos" typically use 2.4Ghz WiFi not the 5GHz hotspots

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