大家好,
我用官方sample code设定AP
不过password并没有动作,每次都不用输入密码就能联机
请问一下原因在哪?
void ICACHE_FLASH_ATTR
user_set_softap_config(void)
{
struct softap_config config;
wifi_softap_get_config(&config);
os_memset(config.ssid, 0, 32);
os_memset(config.password, 0, 64);
os_memcpy(config.ssid, "ESP8266", 7);
os_memcpy(config.password, "12345678", 8);
config.authmode = AUTH_WPA_WPA2_PSK;
config.ssid_len = 0;// or its actual length
config.max_connection = 4;
wifi_softap_set_config(&config);
}
AP password doesn't work??
-
- Posts: 7
- Joined: Mon May 15, 2017 8:51 am
AP password doesn't work??
Postby f4568525153 » Wed Jun 28, 2017 2:45 pm
Last edited by f4568525153 on Thu Jun 29, 2017 12:20 am, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 64 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.