ESP8266 Huzzah - Reserved MAC Wireless?

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
tskunka
 
Posts: 18
Joined: Fri Dec 06, 2013 11:17 pm

ESP8266 Huzzah - Reserved MAC Wireless?

Post by tskunka »

Hopefully an easy one. I want to connect my ESP8266 with Wifi to a network that works only by registering MAC addresses OR via WPA2 Enterprise.
Will this work? I don't see any code samples featuring these connection types.
Just getting back into this stuff so I am a bit rusty - any help would be appreciated.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: ESP8266 Huzzah - Reserved MAC Wireless?

Post by mikeysklar »

@tsunka,

You should be able to use either form of authetnication with the ESP8266 Huzzah.

This will get your mac address if wanted to pre-register. Probably the easiest solution.

Code: Select all

#ifdef ESP32
  #include <WiFi.h>
#else
  #include <ESP8266WiFi.h>
#endif

void setup(){
  Serial.begin(115200);
  Serial.println();
  Serial.print("ESP Board MAC Address:  ");
  Serial.println(WiFi.macAddress());
}
 
void loop(){
There is support for various forms (but not all forms) of WPA2.

https://github.com/esp8266/Arduino/issu ... -258907047

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”