Recently I bought an Arduino Nano 33 IoT. I want to test it using an LED light. I tried doing that and created a Thing in the Arduino IoT Cloud. I typed the correct Wi-Fi credentials and connected the device (and installed the drivers). I created the variable myLED as boolean. I coded it using the web editor and created a dashboard with a switch that turns on/off the LED light.
It appeared online but whatever I did in the dashboard the LED light never turned on. I have even configured the switch in the dashboard correctly! I have even changed LEDs! After 2 hours trying to fix the problem, I reuploaded the code to the Arduino and it started turning on. I thought it worked but it wasn't being controlled by the dashboard. It turned on and off but its own.
Right now it appears offline, not even syncing, not being controlled and in the Serial Monitor it says that it can't be connected to somewhere (it's being kicked).
1. Have you setup up your WiFi Username & Password with the Sketches Secret Tab?
2. Try setting the IoT cloud debug level to 4 as shown below
/*
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(4);
ArduinoCloud.printDebugInfo();
Then capture the Monitor output & post it back here together with a copy of the Sketch (code) you are running?
I am also trying unsuccessfully to connect a new nano 33 IoT to my network. Running Arduino 1.8.19. I am able to upload sketches fine. The ScanNetworks example sees my network, using WPA2 encryption. When I try to run the ConnectWithWPA sketch, it fails to connect. It just says "Attempting to connect to network (gives the SSID)" and then waits the 10 seconds and tries again. I tried following the tutorial here: https://docs.arduino.cc/tutorials/nano-33-iot/wifi-connection. Set up the web editor, copied the whole code example, pasted it into the editor, ran with same result. No connection. Any suggestions?
Thanks,
Jack
Thanks for responding. I have never added a device to the router before so I doubt that the router is filtering it. I have multiple computers, rasp-pi, phones hooked up. Any way to check this that you know?
Thanks,
ok, thanks. For what it is worth, I bought two of these and they behave identically (not connecting). When I run the ScanNetworks example sketch, I get signal strength of -51 dBm. Is that too low?
Since I am stuck in the "while (status != WL_CONNECTED)" loop, I put a Serial.print(status) line in the code. This shows me that the first time the status value is queried, it returns "1". After that, each time the status is requested it returns as "6". According to a site I found (WiFiNINA WIFI.status() return values · Issue #98 · arduino-libraries/WiFiNINA · GitHub), the 1 means WL_NO_SSID_AVAIL, while the 6 means disconnected. I put in the following hoping to reset: if(status == 1){WiFi.end();}
That put a stop to the string of "6" values I was getting, but now it is just returning "1" values. I tried putting my SSID as a string into the WiFi.begin() call but that did not help. Still getting status = 1. When I call for WiFi.scanNetworks and print out the SSID values, it is giving me back the SSID that I am putting in to try to connect.
Any input on what the problem could be and how to address it would be gratefully appreciated.
Thanks, Jack
----More info below indicates that hardware is working ok --------------------------
I took everything to the library where I was able to connect to wifi using the ConnectNoEncryption example. From this, I gather that 1) the hardware on my Arduino is working and 2) that it is not a signal strength issue (the signal in the library was weaker than I get at home). Since my computer (and other hardware) connects using the SSID and password, I suspect some kind of encryption compatibility issue between the Arduino and the router. The router says: WPA2-PSK(AES), which does not mean anything to me. Any suggestions welcome.
Thanks, Jack
I have the same problem with the card, in addition to what was described above I replaced the router and the first time the card connected once and then failed to connect to the wireless network. I must note that when I activate the connection to my cell phone the card manages to connect. Any thought or idea for troubleshooting will be gladly accepted.