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:
}