Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac address in AdafruitIO_ethernet.h appears to be hardcoded #149

Open
LaurieNZ opened this issue Mar 17, 2021 · 0 comments
Open

mac address in AdafruitIO_ethernet.h appears to be hardcoded #149

LaurieNZ opened this issue Mar 17, 2021 · 0 comments

Comments

@LaurieNZ
Copy link

I am using the Adafruit IO Arduino API example code, and trying to set the mac for my ethernet featherwing. It seems to be hardcoded in AdafruitIO_Ethernet.h to use the deadbeeffeed mac address. If I edit the hard coded one with mine, it works. (see below). The AdafruitIO_Ethernet.h file replaces the standard Ethernet.h to give the AdafruitIO support required. I can change the mac address using the standard Ethernet.h, but then I can't use the AdafruitIO credentials. There must be a better way to allow changing the mac address.

//Needed to edit this section of AdafruitIO_Ethernet.h to hard code my mac address

//
const char connectionType() { return "ethernet_wing"; }
protected:
byte _mac[6] = {0x04, 0x91, 0x62, 0xC7, 0xF1, 0xA7};
//byte _mac[6] ={0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED}; /
!< Ethernet FeatherWing MAC Address */
EthernetClient _client; /!< Reference to EthernetClient, _client */
/
/

laurie_nz

Posts: 1
Joined: Thu Mar 11, 2021 11:36 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant