Skip to content

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

@LaurieNZ

Description

@LaurieNZ

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions