Hello everyone, I'm Antonio ; I'm working with Arduino Nano 33 IoT board and Arduino Cloud but to connect it to my Wifi network I need of the board mac address . I checked on the board and its box but there is nothing, how can I find out for its mac address? Thank's
Use WiFi.macAddress() function.
See example code:
https://www.arduino.cc/reference/en/libraries/wifinina/wifi.macaddress/
his issue is that he can't connect to WiFi without the MAC address in the first place
@ninjo1962
if you run something like this, what do you see
#include <SPI.h>
#include <WiFiNINA.h>
void setup() {
Serial.begin(115200); while (!Serial) ;
byte mac[6];
WiFi.macAddress(mac);
Serial.print("MAC: ");
printMacAddress(mac);
}
void loop() {}
(typed here)
As an alternative...
Turn off MAC address filter on your WiFi router, catch the board's mac, restore the filtering....
Won't WiFi.begin() pass the MAC address by auto?
not sure what you mean
That the board comes with a ready MAC address, which to the user would be passed transparent when the board uses the network. So what's the need for the MAC?
Maybe I'm barking upon wrong tree here, if he needs to add MAC to a whitelist.
thank you
Btw, welcome to the forums, and happy ioT'ing!
I assume there is a security mechanism in @ninjo1962 network where he needs to pre-declare the authorised MAC addresses before the device can join the network
(it's not a great security because MAC addresses can be forged easily...)
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.