mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-15 06:28:14 +08:00
让空格回家
This commit is contained in:
@@ -170,9 +170,8 @@ void ApInit()
|
|||||||
{
|
{
|
||||||
char ap_name[16];
|
char ap_name[16];
|
||||||
sprintf(ap_name, ELAND_AP_SSID"-%s", str_mac+6);
|
sprintf(ap_name, ELAND_AP_SSID"-%s", str_mac+6);
|
||||||
os_log("ap_name[%s]", ap_name);
|
os_log("ApInit ap_name[%s]", ap_name);
|
||||||
|
|
||||||
os_log("Soft_ap_Server");
|
|
||||||
network_InitTypeDef_st wNetConfig;
|
network_InitTypeDef_st wNetConfig;
|
||||||
memset(&wNetConfig, 0x0, sizeof(network_InitTypeDef_st));
|
memset(&wNetConfig, 0x0, sizeof(network_InitTypeDef_st));
|
||||||
strcpy((char *)wNetConfig.wifi_ssid, ap_name);
|
strcpy((char *)wNetConfig.wifi_ssid, ap_name);
|
||||||
@@ -183,7 +182,8 @@ void ApInit()
|
|||||||
strcpy((char *)wNetConfig.local_ip_addr, ELAND_AP_LOCAL_IP);
|
strcpy((char *)wNetConfig.local_ip_addr, ELAND_AP_LOCAL_IP);
|
||||||
strcpy((char *)wNetConfig.net_mask, ELAND_AP_NET_MASK);
|
strcpy((char *)wNetConfig.net_mask, ELAND_AP_NET_MASK);
|
||||||
strcpy((char *)wNetConfig.dnsServer_ip_addr, ELAND_AP_DNS_SERVER);
|
strcpy((char *)wNetConfig.dnsServer_ip_addr, ELAND_AP_DNS_SERVER);
|
||||||
os_log("ssid:%s key:%s", wNetConfig.wifi_ssid, wNetConfig.wifi_key);
|
|
||||||
micoWlanStart(&wNetConfig);
|
micoWlanStart(&wNetConfig);
|
||||||
|
|
||||||
|
os_log("ApInit ssid[%s] key[%s]", wNetConfig.wifi_ssid, wNetConfig.wifi_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user