删除多余, 获取保存的wifi和密码

This commit is contained in:
zogodo
2019-09-24 16:54:46 +08:00
parent 48aafdcc77
commit 1e4ca281d8
2 changed files with 8 additions and 99 deletions

View File

@@ -199,32 +199,3 @@ void ap_init()
micoWlanStart(&wNetConfig);
}
static void Wifi_SoftAP_threed(mico_thread_arg_t arg)
{
/*
network_InitTypeDef_st wNetConfig;
mico_rtos_lock_mutex(&WifiConfigMutex);
SendElandStateQueue(APServerStart);
micoWlanSuspend();
mico_rtos_thread_sleep(2);
Eland_httpd_start();
WifiSet_log("Soft_ap_Server");
memset(&wNetConfig, 0x0, sizeof(network_InitTypeDef_st));
strcpy((char *)wNetConfig.wifi_ssid, ELAND_AP_SSID);
strcpy((char *)wNetConfig.wifi_key, ELAND_AP_KEY);
wNetConfig.wifi_mode = Soft_AP;
wNetConfig.dhcpMode = DHCP_Server;
wNetConfig.wifi_retry_interval = 100;
strcpy((char *)wNetConfig.local_ip_addr, ELAND_AP_LOCAL_IP);
strcpy((char *)wNetConfig.net_mask, ELAND_AP_NET_MASK);
strcpy((char *)wNetConfig.dnsServer_ip_addr, ELAND_AP_DNS_SERVER);
WifiSet_log("ssid:%s key:%s", wNetConfig.wifi_ssid, wNetConfig.wifi_key);
micoWlanStart(&wNetConfig);
mico_rtos_get_semaphore(&wifi_SoftAP_Sem, 5000);
mico_rtos_unlock_mutex(&WifiConfigMutex);
mico_rtos_delete_thread(NULL);
*/
}