7 #ifdef CONFIG_LWIP_V200 8 #include <network/network.h> 10 #include <sys/socket.h> 18 #include <uservice/uservice.h> 38 #define IPADDR_STR_LEN 16 50 #define NETMGR_SSID_MAX_LEN (32) 51 #define NETMGR_PWD_MAX_LEN (64) 53 #define NETMGR_BSSID_MAX_LEN (ETH_ALEN) 55 #define NETMGR_BSSID_MAX_LEN (6) 64 #define MAX_AP_CONFIG_NUM (3) 138 #define NETMGR_WIFI_METHOD_MAX_LENGTH (32) 139 #define NETMGR_WIFI_STATUS_MAX_LENGTH (32) 140 #define NETMGR_WIFI_SSID_MAX_LENGTH (32) 141 #define NETMGR_WIFI_PASSWORD_MAX_LENGTH (64) 324 #ifdef AOS_NETWORK_WITH_WIFI 380 void netmgr_wifi_register_mgnt_monitor_cb(
netmgr_hdl_t hdl, monitor_data_cb_t fn);
391 int netmgr_wifi_send_80211_raw_frame(
netmgr_hdl_t hdl, uint8_t *buf,
int len);
netmgr_ssid_format_e
ssid string format
int netmgr_service_init(utask_t *task)
net manager init.
#define NETMGR_WIFI_PASSWORD_MAX_LENGTH
eth_mac_duplex_e
ethernet duplex type
int netmgr_add_dev(const char *name)
add netmgr dev
struct netmgr_ifconfig_info netmgr_ifconfig_info_t
this struct defines netmgr ifconfig info
int netmgr_connect(netmgr_hdl_t hdl, netmgr_connect_params_t *params)
netmgr connect network
void netmgr_service_deinit()
net manager deinit
netmgr_hdl_t netmgr_get_dev(const char *name)
get netmgr handler
#define NETMGR_WIFI_METHOD_MAX_LENGTH
struct netmgr_wifi_ap_config_t netmgr_wifi_config_t
int netmgr_save_config(netmgr_hdl_t hdl)
netmgr save config
void netmgr_set_auto_reconnect(netmgr_hdl_t hdl, bool enable)
set auto reconnect flag
netmgr_msgid_t
netmgr message type
void(* netmgr_msg_cb_t)(netmgr_msg_t *msg)
this struct defines netmgr message callback function
#define NETMGR_PWD_MAX_LEN
int netmgr_disconnect(netmgr_hdl_t hdl)
netmgr disconnect network
int netmgr_get_state(netmgr_hdl_t hdl)
get state of hdl
int netmgr_set_connect_params(netmgr_hdl_t hdl, netmgr_connect_params_t *params)
netmgr set connect params
#define MAX_AP_CONFIG_NUM
int netmgr_set_ifconfig(netmgr_hdl_t hdl, netmgr_ifconfig_info_t *info)
set if config information
int netmgr_get_ifconfig(netmgr_hdl_t hdl, netmgr_ifconfig_info_t *info)
get if config information
int netmgr_del_msg_cb(netmgr_hdl_t hdl, netmgr_msg_cb_t cb)
netmgr delete message callback
int netmgr_get_config(netmgr_hdl_t hdl, netmgr_config_t *config)
get config information
int netmgr_del_config(netmgr_hdl_t, netmgr_del_config_t *config)
delete config information
struct netmgr_connect_params netmgr_connect_params_t
netmgr connect params
eth_mac_speed_e
ethernet speed type
struct netmgr_wifi_conenct_params netmgr_wifi_connect_params_t
netmgr wifi connect params
#define NETMGR_BSSID_MAX_LEN
#define NETMGR_WIFI_SSID_MAX_LENGTH
netmgr_type_t
wireless network type
int netmgr_set_msg_cb(netmgr_hdl_t hdl, netmgr_msg_cb_t cb)
netmgr set message callback
#define NETMGR_WIFI_STATUS_MAX_LENGTH
struct netmgr_del_config netmgr_del_config_t
netmgr delete config
struct netmgr_config netmgr_config_t
netmgr config struct
#define NETMGR_SSID_MAX_LEN
@ NETMGR_SSID_FORMAT_UTF8
@ NETMGR_MSGID_WIFI_STATUS_FROM_IMPL
@ NETMGR_MSGID_ETH_STATUS_FROM_IMPL
@ NETMGR_MSGID_WIFI_TRACE_FROM_IMPL
@ NETMGR_MSGID_WIFI_STATUS
@ NETMGR_MSGID_NETWORK_STATUS
union netmgr_config::@0 config
netmgr_wifi_config_t wifi_config
netmgr_wifi_connect_params_t wifi_params
union netmgr_connect_params::@2 params
union netmgr_del_config::@1 config
char ssid[NETMGR_SSID_MAX_LEN+1]
this struct defines netmgr ifconfig info
char mask[IPADDR_STR_LEN]
char dns_server[IPADDR_STR_LEN]
char ip_addr[IPADDR_STR_LEN]
this struct defines netmgr message
void * network_status_change
this struct defines wifi ap config
this struct defines wifi ap info
netmgr_ssid_format_e ssid_format
this struct defines netmgr message callback function
netmgr wifi connect params
char pwd[NETMGR_PWD_MAX_LEN+1]
char ssid[NETMGR_SSID_MAX_LEN+1]
char bssid[NETMGR_BSSID_MAX_LEN]
this struct defines netmgr wifi status change info