Home
last modified time | relevance | path

Searched refs:g_iface (Results 1 - 19 of 19) sorted by relevance

/vendor/hisilicon/hispark_pegasus/demo/histreaming_client_demo/
H A Dwifi_connecter.c65 static struct netif* g_iface = NULL; variable
101 g_iface = netifapi_netif_find("wlan0"); in ConnectToHotspot()
102 if (g_iface) { in ConnectToHotspot()
104 err_t ret = netifapi_set_hostname(g_iface, hostname, strlen(hostname)); in ConnectToHotspot()
107 ret = netifapi_dhcp_start(g_iface); in ConnectToHotspot()
112 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspot()
122 if (g_iface) { in DisconnectWithHotspot()
123 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot()
/vendor/hisilicon/hispark_pegasus/demo/lwip_demo/
H A Dwifi_connecter.c65 static struct netif* g_iface = NULL; variable
101 g_iface = netifapi_netif_find("wlan0"); in ConnectToHotspot()
102 if (g_iface) { in ConnectToHotspot()
104 err_t ret = netifapi_set_hostname(g_iface, hostname, strlen(hostname)); in ConnectToHotspot()
107 ret = netifapi_dhcp_start(g_iface); in ConnectToHotspot()
112 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspot()
122 if (g_iface) { in DisconnectWithHotspot()
123 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot()
/vendor/hisilicon/hispark_pegasus/demo/easy_wifi_demo/src/
H A Dwifi_connecter.c71 static struct netif* g_iface = NULL; variable
96 g_iface = netifapi_netif_find("wlan0"); in ConnectToHotspot()
97 if (g_iface) { in ConnectToHotspot()
98 err_t ret = netifapi_dhcp_start(g_iface); in ConnectToHotspot()
102 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspot()
110 if (g_iface) { in DisconnectWithHotspot()
111 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot()
H A Dwifi_starter.c75 static struct netif* g_iface = NULL; variable
96 g_iface = netifapi_netif_find("ap0"); in StartHotspot()
97 if (g_iface) { in StartHotspot()
105 err_t ret = netifapi_netif_set_addr(g_iface, &ipaddr, &netmask, &gateway); in StartHotspot()
108 ret = netifapi_dhcps_start(g_iface, 0, 0); in StartHotspot()
116 if (g_iface) { in StopHotspot()
117 err_t ret = netifapi_dhcps_stop(g_iface); in StopHotspot()
/vendor/hisilicon/hispark_pegasus/demo/histreaming_demo/
H A Dwifi_starter.c70 static struct netif* g_iface = NULL; variable
102 g_iface = netifapi_netif_find("ap1"); in StartHotspot()
103 if (g_iface) { in StartHotspot()
111 err_t ret = netifapi_netif_set_addr(g_iface, &ipaddr, &netmask, &gateway); in StartHotspot()
114 ret = netifapi_dhcps_start(g_iface, 0, 0); in StartHotspot()
122 if (g_iface) { in StopHotspot()
123 err_t ret = netifapi_dhcps_stop(g_iface); in StopHotspot()
H A Dwifi_connecter.c66 static struct netif* g_iface = NULL; variable
91 g_iface = netifapi_netif_find("wlan0"); in ConnectToHotspotconst()
92 if (g_iface) { in ConnectToHotspotconst()
93 err_t ret = netifapi_dhcp_start(g_iface); in ConnectToHotspotconst()
97 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspotconst()
105 if (g_iface) { in DisconnectWithHotspot()
106 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot()
/vendor/hisilicon/hispark_pegasus/demo/samart_environmental_monitoring_system_demo/udpserver_env/
H A Dwifi_starter.c75 static struct netif* g_iface = NULL; variable
96 g_iface = netifapi_netif_find("ap0"); in StartHotspot()
97 if (g_iface) { in StartHotspot()
105 err_t ret = netifapi_netif_set_addr(g_iface, &ipaddr, &netmask, &gateway); in StartHotspot()
108 ret = netifapi_dhcps_start(g_iface, 0, 0); in StartHotspot()
116 if (g_iface) { in StopHotspot()
117 err_t ret = netifapi_dhcps_stop(g_iface); in StopHotspot()
H A Dwifi_connecter.c71 static struct netif* g_iface = NULL; variable
98 g_iface = netifapi_netif_find("wlan0"); in ConnectToHotspot()
99 if (g_iface) { in ConnectToHotspot()
102 ret = netifapi_set_hostname(g_iface, hostname, strlen(hostname)); in ConnectToHotspot()
105 ret = netifapi_dhcp_start(g_iface); in ConnectToHotspot()
110 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspot()
117 ret = netifapi_netif_get_addr(g_iface, &ip, &netmask, &gw); in ConnectToHotspot()
131 if (g_iface) { in DisconnectWithHotspot()
132 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot()
/vendor/hisilicon/hispark_pegasus/demo/smart_night_light_demo/udpserver_light/
H A Dwifi_starter.c74 static struct netif* g_iface = NULL; variable
95 g_iface = netifapi_netif_find("ap0"); in StartHotspot()
96 if (g_iface) { in StartHotspot()
104 err_t ret = netifapi_netif_set_addr(g_iface, &ipaddr, &netmask, &gateway); in StartHotspot()
107 ret = netifapi_dhcps_start(g_iface, 0, 0); in StartHotspot()
115 if (g_iface) { in StopHotspot()
116 err_t ret = netifapi_dhcps_stop(g_iface); in StopHotspot()
H A Dwifi_connecter.c71 static struct netif* g_iface = NULL; variable
98 g_iface = netifapi_netif_find("wlan0"); in ConnectToHotspot()
99 if (g_iface) { in ConnectToHotspot()
102 ret = netifapi_set_hostname(g_iface, hostname, strlen(hostname)); in ConnectToHotspot()
105 ret = netifapi_dhcp_start(g_iface); in ConnectToHotspot()
110 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspot()
117 ret = netifapi_netif_get_addr(g_iface, &ip, &netmask, &gw); in ConnectToHotspot()
131 if (g_iface) { in DisconnectWithHotspot()
132 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot()
/vendor/hisilicon/hispark_pegasus/demo/oc_demo/
H A Dwifi_connecter.c63 static struct netif* g_iface = NULL; variable
90 g_iface = netifapi_netif_find("wlan0"); in ConnectToHotspot()
91 if (g_iface) { in ConnectToHotspot()
94 ret = netifapi_set_hostname(g_iface, hostname, strlen(hostname)); in ConnectToHotspot()
97 ret = netifapi_dhcp_start(g_iface); in ConnectToHotspot()
102 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspot()
109 ret = netifapi_netif_get_addr(g_iface, &ip, &netmask, &gw); in ConnectToHotspot()
123 if (g_iface) { in DisconnectWithHotspot()
124 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot()
/vendor/hisilicon/hispark_pegasus/demo/sntp_demo/test/
H A Dwifi_connecter.c70 static struct netif* g_iface = NULL; variable
97 g_iface = netifapi_netif_find("wlan0"); in ConnectToHotspot()
98 if (g_iface) { in ConnectToHotspot()
101 ret = netifapi_set_hostname(g_iface, hostname, strlen(hostname)); in ConnectToHotspot()
104 ret = netifapi_dhcp_start(g_iface); in ConnectToHotspot()
109 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspot()
116 ret = netifapi_netif_get_addr(g_iface, &ip, &netmask, &gw); in ConnectToHotspot()
130 if (g_iface) { in DisconnectWithHotspot()
131 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot()
/vendor/hisilicon/hispark_pegasus/demo/tcpclient_demo/
H A Dwifi_connecter.c70 static struct netif* g_iface = NULL; variable
97 g_iface = netifapi_netif_find("wlan0"); in ConnectToHotspot()
98 if (g_iface) { in ConnectToHotspot()
101 ret = netifapi_set_hostname(g_iface, hostname, strlen(hostname)); in ConnectToHotspot()
104 ret = netifapi_dhcp_start(g_iface); in ConnectToHotspot()
109 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspot()
116 ret = netifapi_netif_get_addr(g_iface, &ip, &netmask, &gw); in ConnectToHotspot()
129 if (g_iface) { in DisconnectWithHotspot()
130 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot()
/vendor/hisilicon/hispark_pegasus/demo/tcpserver_demo/
H A Dwifi_connecter.c70 static struct netif* g_iface = NULL; variable
97 g_iface = netifapi_netif_find("wlan0"); in ConnectToHotspot()
98 if (g_iface) { in ConnectToHotspot()
101 ret = netifapi_set_hostname(g_iface, hostname, strlen(hostname)); in ConnectToHotspot()
104 ret = netifapi_dhcp_start(g_iface); in ConnectToHotspot()
109 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspot()
116 ret = netifapi_netif_get_addr(g_iface, &ip, &netmask, &gw); in ConnectToHotspot()
130 if (g_iface) { in DisconnectWithHotspot()
131 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot()
/vendor/hisilicon/hispark_pegasus/demo/udpclient_demo/
H A Dwifi_connecter.c70 static struct netif* g_iface = NULL; variable
97 g_iface = netifapi_netif_find("wlan0"); in ConnectToHotspot()
98 if (g_iface) { in ConnectToHotspot()
101 ret = netifapi_set_hostname(g_iface, hostname, strlen(hostname)); in ConnectToHotspot()
104 ret = netifapi_dhcp_start(g_iface); in ConnectToHotspot()
109 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspot()
116 ret = netifapi_netif_get_addr(g_iface, &ip, &netmask, &gw); in ConnectToHotspot()
130 if (g_iface) { in DisconnectWithHotspot()
131 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot()
/vendor/hisilicon/hispark_pegasus/demo/udpserver_demo/
H A Dwifi_connecter.c70 static struct netif* g_iface = NULL; variable
97 g_iface = netifapi_netif_find("wlan0"); in ConnectToHotspot()
98 if (g_iface) { in ConnectToHotspot()
101 ret = netifapi_set_hostname(g_iface, hostname, strlen(hostname)); in ConnectToHotspot()
104 ret = netifapi_dhcp_start(g_iface); in ConnectToHotspot()
109 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in ConnectToHotspot()
116 ret = netifapi_netif_get_addr(g_iface, &ip, &netmask, &gw); in ConnectToHotspot()
130 if (g_iface) { in DisconnectWithHotspot()
131 err_t ret = netifapi_dhcp_stop(g_iface); in DisconnectWithHotspot()
/vendor/hisilicon/hispark_pegasus/demo/udp_demo/
H A Dwifi_sta_connect.c36 static struct netif* g_iface = NULL; variable
130 g_iface = netifapi_netif_find("wlan0"); in WifiStaStart()
131 if (g_iface) { in WifiStaStart()
132 err_t ret = netifapi_dhcp_start(g_iface); in WifiStaStart()
136 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in WifiStaStart()
/vendor/hisilicon/hispark_pegasus/demo/iottencent_demo/
H A Diot_sta.c41 static struct netif* g_iface = NULL; variable
227 g_iface = netifapi_netif_find("wlan0"); in WifiStartSta()
228 if (g_iface) { in WifiStartSta()
229 err_t ret = netifapi_dhcp_start(g_iface); in WifiStartSta()
233 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in WifiStartSta()
243 if (g_iface) { in WifiStopSta()
244 err_t ret = netifapi_dhcp_stop(g_iface); in WifiStopSta()
/vendor/hisilicon/hispark_pegasus/demo/mqtt_demo/
H A Diot_sta.c41 static struct netif* g_iface = NULL; variable
227 g_iface = netifapi_netif_find("wlan0"); in WifiStartSta()
228 if (g_iface) { in WifiStartSta()
229 err_t ret = netifapi_dhcp_start(g_iface); in WifiStartSta()
233 ret = netifapi_netif_common(g_iface, dhcp_clients_info_show, NULL); in WifiStartSta()
243 if (g_iface) { in WifiStopSta()
244 err_t ret = netifapi_dhcp_stop(g_iface); in WifiStopSta()

Completed in 7 milliseconds