Nano 33 IOT WiFi connection to hidden SSID

Hi there

Wondering if anyone can help me. I just started using my first Nano 33 IOT and found it can’t connect to my hidden SSID wireless network. I’m just trying to get the first IOT Cloud tutorial up and running but I can only connect if my AP broadcasts its SSID.

I intend to use this to “Smart Home” my narrowboat but I’m a bit paranoid about broadcasting my SSID when there are public around.

Here is the code I’m using;

#include <Arduino_ConnectionHandler.h>

const char SSID[] = SECRET_SSID;
const char PASS[] = SECRET_PASS;

WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);

Thanks in advance for any help!

Here is the code I'm using;

No, this is a tiny excerpt of your code.

#include <Arduino_ConnectionHandler.h>

Have you tried using just WiFiNINA to connect to the network? Using a framework that depends on scanning for the connection is not a very bright idea.

karlz:
I’m a bit paranoid about broadcasting my SSID when there are public around.

I can recommend you make your life easier by un-hiding your SSID. It does not make your network more secure. Bad people and kids who know Google can figure out your SSID very easily. Additionally, when your router does not advertise the SSID, guess what all your devices shout the SSID when they are somewhere else. How else would your network and your devices find each other.

Just Google "Why hidden SSID is not secure" to get some confirmation.

I stepped into the light myself and it was good. :slight_smile:

Thanks for your help guys.

I will try WifiNina and see if it is any better.

I mostly don't want to broadcast SSID because if the public can see I have wifi on board, they will know I have IT equipment that uses it and therefore be tempted to break in. Not necessarily to stop hackers.