mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-12 21:18:13 +08:00
用AaaBbbCcc()格式重命名函数名
This commit is contained in:
@@ -12,8 +12,8 @@ char wifi_status = WIFI_STATE_NOCONNECT;
|
||||
|
||||
mico_timer_t wifi_led_timer;
|
||||
IpStatus ip_status = { 0, ZZ_AP_LOCAL_IP, ZZ_AP_LOCAL_IP, ZZ_AP_NET_MASK };
|
||||
char ap_name[32] = { 0 };
|
||||
char ap_key[32] = { 0 };
|
||||
char ap_name[32] = { 0 };
|
||||
char ap_key[32] = { 0 };
|
||||
|
||||
//wifi已连接获取到IP地址回调
|
||||
static void WifiGetIpCallback(IPStatusTypedef *pnet, void * arg)
|
||||
@@ -24,7 +24,7 @@ static void WifiGetIpCallback(IPStatusTypedef *pnet, void * arg)
|
||||
|
||||
os_log("got IP:%s", pnet->ip);
|
||||
wifi_status = WIFI_STATE_CONNECTED;
|
||||
user_function_cmd_received(1,"{\"cmd\":\"device report\"}");
|
||||
UserFunctionCmdReceived(1,"{\"cmd\":\"device report\"}");
|
||||
}
|
||||
|
||||
//wifi连接状态改变回调
|
||||
@@ -191,18 +191,18 @@ void ApInit()
|
||||
os_log("ApInit ap_name[%s] ap_key[%s]", ap_name, ap_key);
|
||||
}
|
||||
|
||||
network_InitTypeDef_st wNetConfig;
|
||||
memset(&wNetConfig, 0x0, sizeof(network_InitTypeDef_st));
|
||||
strcpy((char *)wNetConfig.wifi_ssid, ap_name);
|
||||
strcpy((char *)wNetConfig.wifi_key, ap_key);
|
||||
wNetConfig.wifi_mode = Soft_AP;
|
||||
wNetConfig.dhcpMode = DHCP_Server;
|
||||
wNetConfig.wifi_retry_interval = 100;
|
||||
strcpy((char *)wNetConfig.local_ip_addr, ZZ_AP_LOCAL_IP);
|
||||
strcpy((char *)wNetConfig.net_mask, ZZ_AP_NET_MASK);
|
||||
strcpy((char *)wNetConfig.dnsServer_ip_addr, ZZ_AP_DNS_SERVER);
|
||||
micoWlanStart(&wNetConfig);
|
||||
|
||||
os_log("ApInit ssid[%s] key[%s]", wNetConfig.wifi_ssid, wNetConfig.wifi_key);
|
||||
network_InitTypeDef_st wNetConfig;
|
||||
memset(&wNetConfig, 0x0, sizeof(network_InitTypeDef_st));
|
||||
strcpy((char *)wNetConfig.wifi_ssid, ap_name);
|
||||
strcpy((char *)wNetConfig.wifi_key, ap_key);
|
||||
wNetConfig.wifi_mode = Soft_AP;
|
||||
wNetConfig.dhcpMode = DHCP_Server;
|
||||
wNetConfig.wifi_retry_interval = 100;
|
||||
strcpy((char *)wNetConfig.local_ip_addr, ZZ_AP_LOCAL_IP);
|
||||
strcpy((char *)wNetConfig.net_mask, ZZ_AP_NET_MASK);
|
||||
strcpy((char *)wNetConfig.dnsServer_ip_addr, ZZ_AP_DNS_SERVER);
|
||||
micoWlanStart(&wNetConfig);
|
||||
|
||||
os_log("ApInit ssid[%s] key[%s]", wNetConfig.wifi_ssid, wNetConfig.wifi_key);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user