ESP8266 Developer Zone The Official ESP8266 Forum 2015-11-03T11:34:50+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=1320 2015-11-03T11:34:50+08:00 2015-11-03T11:34:50+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1320&p=4426#p4426 <![CDATA[Re: 为什么softap ssid最多只能设置为10个字符?]]> Statistics: Posted by Goland — Tue Nov 03, 2015 11:34 am


]]>
2015-11-03T10:09:51+08:00 2015-11-03T10:09:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1320&p=4424#p4424 <![CDATA[Re: 为什么softap ssid最多只能设置为10个字符?]]>
这种问题一般是因为 softAP_config.ssid_len 参数没有初始化导致的,您可以将 ssid_len 设置为 0 或者实际 SSID 长度。

感谢您对 ESP8266 的关注!

Statistics: Posted by ESP_Faye — Tue Nov 03, 2015 10:09 am


]]>
2015-10-31T19:01:12+08:00 2015-10-31T19:01:12+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1320&p=4397#p4397 <![CDATA[[SOLVED]为什么softap ssid最多只能设置为10个字符?]]> struct softap_config config;
char macaddr[6];

wifi_softap_get_config(&config);
wifi_get_macaddr(SOFTAP_IF, macaddr);
os_printf(">>>>>>>>>>>>>111>>>ssid:%s\n", config.ssid);

os_memset(config.ssid, 0, sizeof(config.ssid));
os_sprintf(config.ssid, "abcdef_%02x%02x%02x", macaddr[3], macaddr[4], macaddr[5]);

wifi_softap_set_config(&config);
os_printf(">>>>>>>>>>>>>2222>>>ssid:%s\n", config.ssid);

Statistics: Posted by Goland — Sat Oct 31, 2015 7:01 pm


]]>