I just uploaded some code (successfully it seems)...to make the device discoverable as a wifi device (or bluetooth) and both don't seem to work. I hope nothing is wrong with the radio chip or something.
What i want to do:
I am building a clock. I want to use the Nano 33 to basically set the time, move some servo's and sychronize with the local time. This is important because i have customers for the product. So simply adding my own wifi credentials to the code will not work. So i am also building an android app for it as well to set the wifi setting.
The problem:
Anyway... i just want to test my new nano 33 and see if it works.
So i uploaded some code in the hope it will be discoverable and listed in the list of wifi networks or bluetooth devices on my android phone.
But it's not listed. I tried resetting the device, debug the code, nothing seems to work. What am i doing wrong??
Here is my code to hopefully make the nano listed as a wifi device:
#include <WiFiNINA.h>
const char* ssid = "WallClockTest"; // Define an SSID for the access point
const char* password = "wallclock"; // Define a password for the access point
void setup() {
Serial.begin(9600);
while (!Serial);
// Set up the Arduino as an access point
Serial.print("Setting up as an access point...");
int status = WiFi.beginAP(ssid, password);
if (status != WL_AP_LISTENING) {
Serial.println("Failed to set up as an access point.");
while (true);
}
Serial.println("Access point is set up.");
Serial.print("SSID: ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {
// Your main code here
}
ps: The Nano is only connected to my laptop's usb port.... the green light is on, the orange is flickering when i upload and everything is successful. And yes, i imported the library.
You got the expected output so the sketch compiles and uploads OK. There could, of course, be a hardware problem with the WiFi on the board but I don't know how you would test that
Simply restarted my phone...
I thought the radio chip was dead on arrival as well.
Restarted the second phone...also works now. Which is still odd and makes no sense to me actually. I mean... there either is or isn't a wifi hotspot. What that has to do with restarting android i have no clue. But the second phone confirmed the issue
SOLUTION: Restart Phone (or other connecting devices)