ESP8266 Developer Zone The Official ESP8266 Forum 2015-07-15T10:25:08+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=747 2015-07-15T10:25:08+08:00 2015-07-15T10:25:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=747&p=2680#p2680 <![CDATA[Re: Cannot set MAC address of Soft-AP]]>
Please call wifi_set_opmode to enable ESP8266 soft-AP first.

Code:

       
        char sofap_mac[6] = {0x16, 0x34, 0x56, 0x78, 0x90, 0xab};
 
        wifi_set_opmode(STATIONAP_MODE); // station + softAP mode
        wifi_set_macaddr(SOFTAP_IF, sofap_mac);


If your problem is still unsolved, please provide your test code, we will have a try.

Thanks for your interest in Espressif Systems and ESP8266 !

Statistics: Posted by ESP_Faye — Wed Jul 15, 2015 10:25 am


]]>
2015-07-14T21:09:26+08:00 2015-07-14T21:09:26+08:00 https://bbs.espressif.com:443/viewtopic.php?t=747&p=2668#p2668 <![CDATA[Cannot set MAC address of Soft-AP]]>
I will set MAC address of Soft-AP and Station with wifi_set_macaddr API.
Station's one could be set, but Soft-AP's one could not be set.

Return value of wifi_set_macaddr( SOFTAP_IF, my_mac_address ) in user_init() is false.

I'm using SDK ver.1.2.0.

Please confirm it.

Statistics: Posted by riverwin — Tue Jul 14, 2015 9:09 pm


]]>