Connecting arduino nano 33 iot to wifi

Hi, I have a problem dealing with Arduino Nano 33 IoT. I tried to connect the Arduino Nano 33 IoT to my wifi but then, it some sort like unstable. I already tried scan my networks and my wifi totally stabled. I'm not sure why, I tried to solve the problem in a month but still I could not find a way. Plus, I already used VUSB of Arduino Nano 33 Iot for supplying voltage of 5V to my sensors. Is it related to firmware update or the VUSB itself. The code that I implemented is shown below:

#include <SPI.h>
#include <WiFiNINA.h>

char ssid[] = "xxxxxx";
char pass[] = "xxxxxxxx";

int status = WL_IDLE_STATUS;

WiFiSSLClient client;

void connectToAP(){

while ( status != WL_CONNECTED){
Serial.print("Attempting to connect to SSID: ");
Serial.println(ssid);

status = WiFi.begin(ssid, pass);

delay(1000);
Serial.println("Connected...");
}

}

void printWifiStatus(){

Serial.print("SSID: ");
Serial.println(WiFi.SSID());

IPAddress ip = WiFi.localIP();
Serial.print("IP Address: ");
Serial.println(ip);
}

void setup() {
// put your setup code here, to run once:
Serial.begin(9600);

while (!Serial){
}
if (WiFi.status() == WL_NO_MODULE){
Serial.println("Wifi module failed!");
while(true);
}

connectToAP();
printWifiStatus();
}

void loop() {
// put your main code here, to run repeatedly:

}

00:58:47.261 -> Attempting to connect to SSID: xxxxxx
00:58:51.628 -> Connected...
00:58:51.628 -> Attempting to connect to SSID: xxxxxx
00:59:00.543 -> Connected...
00:59:00.543 -> Attempting to connect to SSID: xxxxxx
00:59:04.485 -> Connected...

I mean, if the controller successfully connected, the serial monitor should show the IP Address.

I know this is simple, but have you made sure the password you are giving is the correct one? I had the same problem and then realized the password I had inputted was one character off.

First post here. Got my pw right, stored my SSID in uppercase rather than lower case.

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