Skip to content

Mac addresses returned in reverse order in examples #31

@drp0

Description

@drp0

Just in case for some bizarre reason it is different in other parts of the planet I have to state that I am using the shield in the uk.
My router reports that the mac address of the shield and of itself is in the reverse order of that shown in the example sketches.
Simply printing the mac address in the reverse order solves the issue:
byte mac[6]; WiFi.macAddress(mac); Serial.print("MAC address: "); Serial.print(mac[0], HEX); Serial.print(":"); Serial.print(mac[1], HEX); Serial.print(":"); Serial.print(mac[2], HEX); Serial.print(":"); Serial.print(mac[3], HEX); Serial.print(":"); Serial.print(mac[4], HEX); Serial.print(":"); Serial.println(mac[5], HEX);

David

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