Cannot set MAC address of Soft-AP

riverwin
Posts: 5
Joined: Tue Jul 14, 2015 8:19 pm

Cannot set MAC address of Soft-AP

Postby riverwin » Tue Jul 14, 2015 9:09 pm

Hi,

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.

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: Cannot set MAC address of Soft-AP

Postby ESP_Faye » Wed Jul 15, 2015 10:25 am

Hi,

Please call wifi_set_opmode to enable ESP8266 soft-AP first.

Code: Select all

       
        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 !

Who is online

Users browsing this forum: No registered users and 85 guests