下面是代码,无法读取,请问要怎样正确
_u8 macAddressVal[SL_MAC_ADDR_LEN];
_u16 macAddressLen = SL_MAC_ADDR_LEN;
_u16 ConfigOpt = 1;
int mac=0;
sl_NetCfgGet(SL_NETCFG_MAC_ADDRESS_GET,&ConfigOpt,&macAddressLen,(_u8 *)macAddressVal);
user6224149:
uniflash可以获取这个值
Viki Shi:
读取MAC地址就是sl_NetCfgGet,代码如下:
_u8 macAddressVal[SL_MAC_ADDR_LEN]; _u16 macAddressLen = SL_MAC_ADDR_LEN; _u16 ConfigOpt = 0; sl_NetCfgGet(SL_NETCFG_MAC_ADDRESS_GET,&ConfigOpt,&macAddressLen,(_u8 *)macAddressVal);