khoih-prog / Ethernet_Manager

Simple Ethernet Manager for Teensy, SAM DUE, SAMD21, SAMD51, nRF52, ESP32, ESP8266, etc. boards, with or without SSL, configuration data saved in ESP8266 LittleFS, SPIFFS, nRF52 LittleFS/InternalFS, EEPROM, DueFlashStorage or SAMD FlashStorage.
MIT License
15 stars 3 forks source link

Unable so set MAC Address #2

Closed sahlex closed 2 years ago

sahlex commented 2 years ago

Hello.

I'm using a Wemos D1 (ESP8266) with a W5100 Ethernet shield. It works generally but I'm not able to set a MAC address. It always uses the generic MAC FE-AB-CD-EF-ED-BA which is hardcoded in Ethernet_ESP8266_Manager.h.

Using the example Program in Ethernet_Generic, I was able to connect the shield but wherever I call setMacAddress it has no effect.

Is there any way to set the MAC address?

Hardware used:

Best regards, Alexander

khoih-prog commented 2 years ago

Hi @sahlex

Thanks for your usage of the library and report of the bug. Sorry for the very late response. You know it's difficult to find time to work in the summer ;-}}

It always uses the generic MAC FE-AB-CD-EF-ED-BA which is hardcoded in Ethernet_ESP8266_Manager.h

I'll fix the issue to make the MAC to be assigned randomly in next release soon.

This way is better than you have to set it manually, for every board by modifying the code for each board..

khoih-prog commented 2 years ago

Hi @sahlex

The new Ethernet_Manager releases v1.8.0 has just been published. Your contribution is noted in Contributions and Thanks

Sorry for the so long delay,

Best Regards,


Releases v1.8.0

  1. Fix macAddress bug. Check Unable so set MAC Address #2
  2. Permit setting macAddress for supporting Ethernet shields W5x00 and ENC28J60
  3. Add functions relating to macAddress
  4. Rewrite all the examples to support new features
  5. Drop support to Ethernet_ESP8266
  6. Update Packages' Patches