You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered: