AnsweredAssumed Answered

ipcfg_get_mac(0, mac); always returns 00:00:5E:FE:03:03

Question asked by Carl Norman on Nov 2, 2010
Latest reply on Nov 10, 2011 by David E Seymour

Hi,

 

Can someone tell me why this always returns the same mac address on every device I use? (Bascially a MCF52259EVB, MQX 3.6.1, CW7.2)

 

 

void GetMacString(char *ptmp){ _enet_address mac = {0}; if(ipcfg_get_mac(0, mac) != TRUE) {  sprintf(ptmp,"MAC ERROR\n");  } else {  sprintf(ptmp,"%02X-%02X-%02X-%02X-%02X-%02X\n", mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);   } }

 

 

 

 output:

MAC : 00:00:5E:FE:03:03

 

Outcomes