请问修改模块在路由器里显示名字的api
-
- Posts: 6
- Joined: Thu Aug 27, 2015 2:16 pm
请问修改模块在路由器里显示名字的api
Postby JackLee889 » Thu Aug 27, 2015 2:20 pm
请问修还模块在路由器里显示名字的api是哪个?我现在显示的是ESP8266.谢谢
Re: 请问修改模块在路由器里显示名字的api
Postby danshi126 » Sat Aug 29, 2015 4:16 pm
兄弟,SDK里有相应的代码,多看看代码吧
以下是SDK里Copy出来的
struct softap_config config;
char password[33];
char macaddr[6];
wifi_softap_get_config(&config);
wifi_get_macaddr(SOFTAP_IF, macaddr);
os_memset(config.password, 0, sizeof(config.password));
os_sprintf(password, MACSTR "_%s", MAC2STR(macaddr), PASSWORD);
os_memcpy(config.password, password, os_strlen(password));
config.authmode = AUTH_WPA_WPA2_PSK;
wifi_softap_set_config(&config);
以下是SDK里Copy出来的
struct softap_config config;
char password[33];
char macaddr[6];
wifi_softap_get_config(&config);
wifi_get_macaddr(SOFTAP_IF, macaddr);
os_memset(config.password, 0, sizeof(config.password));
os_sprintf(password, MACSTR "_%s", MAC2STR(macaddr), PASSWORD);
os_memcpy(config.password, password, os_strlen(password));
config.authmode = AUTH_WPA_WPA2_PSK;
wifi_softap_set_config(&config);
-
- Posts: 6
- Joined: Thu Aug 27, 2015 2:16 pm
Re: 请问修改模块在路由器里显示名字的api
Postby JackLee889 » Sat Aug 29, 2015 7:39 pm
可能是我表达不清楚,不是softap 模式,是station模式在路由器中显示的名字。
Who is online
Users browsing this forum: No registered users and 85 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.