Saving byte array in PROGMEM instead of SRAM

Hello all!

For an ethernet project I do, I need to store the Ethernet Shield’s MAC address. I store it like that:

byte mac[] = { 0x90, 0xA2, 0xDA, 0x0F, 0xE1, 0x85 };

That works OK, but in my project I need all the SRAM available, so every byte of memory is important. I’ve used the F() macro and PROGMEM everywhere, but I couldn’t manage to store the MAC byte array in the PROGMEM.

How can I store it in PROGMEM? Is it even possible?


const byte mac[] PROGMEM = { 0x90, 0xA2, 0xDA, 0x0F, 0xE1, 0x85 };