物联网操作系统AliOS Things 3.3 |
结构体 | |
struct | netmgr_ifconfig_info |
this struct defines netmgr ifconfig info 更多... | |
struct | netmgr_wifi_ap_info_t |
this struct defines wifi ap info 更多... | |
struct | netmgr_wifi_ap_config_t |
this struct defines wifi ap config 更多... | |
struct | netmgr_config |
netmgr config struct 更多... | |
struct | netmgr_del_config |
netmgr delete config 更多... | |
struct | netmgr_wifi_conenct_params |
netmgr wifi connect params 更多... | |
struct | netmgr_connect_params |
netmgr connect params 更多... | |
struct | netmgr_wifi_network_status_change_t |
this struct defines netmgr wifi status change info 更多... | |
struct | netmgr_msg_t |
this struct defines netmgr message 更多... | |
struct | netmgr_wifi_ap_list_t |
this struct defines netmgr message callback function 更多... | |
宏定义 | |
#define | IPADDR_STR_LEN 16 |
#define | NETMGR_SSID_MAX_LEN (32) |
#define | NETMGR_PWD_MAX_LEN (64) |
#define | NETMGR_BSSID_MAX_LEN (6) |
#define | MAX_AP_CONFIG_NUM (3) |
#define | NETMGR_WIFI_METHOD_MAX_LENGTH (32) |
#define | NETMGR_WIFI_STATUS_MAX_LENGTH (32) |
#define | NETMGR_WIFI_SSID_MAX_LENGTH (32) |
#define | NETMGR_WIFI_PASSWORD_MAX_LENGTH (64) |
类型定义 | |
typedef struct netmgr_ifconfig_info | netmgr_ifconfig_info_t |
this struct defines netmgr ifconfig info 更多... | |
typedef struct netmgr_wifi_ap_config_t | netmgr_wifi_config_t |
typedef struct netmgr_config | netmgr_config_t |
netmgr config struct 更多... | |
typedef struct netmgr_del_config | netmgr_del_config_t |
netmgr delete config 更多... | |
typedef struct netmgr_wifi_conenct_params | netmgr_wifi_connect_params_t |
netmgr wifi connect params 更多... | |
typedef struct netmgr_connect_params | netmgr_connect_params_t |
netmgr connect params 更多... | |
typedef void(* | netmgr_msg_cb_t) (netmgr_msg_t *msg) |
this struct defines netmgr message callback function 更多... | |
typedef int | netmgr_hdl_t |
枚举 | |
enum | eth_mac_speed_e { ETH_MAC_SPEED_10M , ETH_MAC_SPEED_100M , ETH_MAC_SPEED_1000M } |
ethernet speed type 更多... | |
enum | eth_mac_duplex_e { ETH_MAC_DUPLEX_HALF , ETH_MAC_DUPLEX_FULL } |
ethernet duplex type 更多... | |
enum | netmgr_ssid_format_e { NETMGR_SSID_FORMAT_UTF8 , NETMGR_SSID_FORMAT_GBK } |
ssid string format 更多... | |
enum | netmgr_type_t { NETMGR_TYPE_WIFI , NETMGR_TYPE_GPRS , NETMGR_TYPE_NBIOT , NETMGR_TYPE_ETH , NETMGR_TYPE_MAX } |
wireless network type 更多... | |
enum | netmgr_msgid_t { NETMGR_MSGID_MIN = 0 , NETMGR_MSGID_WIFI_STATUS = NETMGR_MSGID_MIN , NETMGR_MSGID_WIFI_STATUS_FROM_IMPL , NETMGR_MSGID_WIFI_TRACE_FROM_IMPL , NETMGR_MSGID_NETWORK_STATUS , NETMGR_MSGID_ETH_STATUS_FROM_IMPL , NETMGR_MSGID_MAX } |
netmgr message type 更多... | |
typedef struct netmgr_config netmgr_config_t |
netmgr config struct
typedef struct netmgr_connect_params netmgr_connect_params_t |
netmgr connect params
typedef struct netmgr_del_config netmgr_del_config_t |
netmgr delete config
typedef int netmgr_hdl_t |
typedef struct netmgr_ifconfig_info netmgr_ifconfig_info_t |
this struct defines netmgr ifconfig info
typedef void(* netmgr_msg_cb_t) (netmgr_msg_t *msg) |
typedef struct netmgr_wifi_ap_config_t netmgr_wifi_config_t |
typedef struct netmgr_wifi_conenct_params netmgr_wifi_connect_params_t |
netmgr wifi connect params
enum eth_mac_duplex_e |
enum eth_mac_speed_e |
enum netmgr_msgid_t |
enum netmgr_ssid_format_e |
enum netmgr_type_t |
int netmgr_add_dev | ( | const char * | name | ) |
add netmgr dev
[in] | name | name of netmgr dev |
int netmgr_connect | ( | netmgr_hdl_t | hdl, |
netmgr_connect_params_t * | params | ||
) |
netmgr connect network
[in] | hdl | netmgr handle |
[in] | params | netmgr connect params |
int netmgr_del_config | ( | netmgr_hdl_t | , |
netmgr_del_config_t * | config | ||
) |
delete config information
[in] | hdl | netmgr handle |
[in] | config | netmgr config information |
int netmgr_del_msg_cb | ( | netmgr_hdl_t | hdl, |
netmgr_msg_cb_t | cb | ||
) |
netmgr delete message callback
[in] | hdl | netmgr handle |
[in] | cb | netmgr msg callback |
int netmgr_disconnect | ( | netmgr_hdl_t | hdl | ) |
netmgr disconnect network
[in] | hdl | netmgr handle |
int netmgr_get_config | ( | netmgr_hdl_t | hdl, |
netmgr_config_t * | config | ||
) |
get config information
[in] | hdl | netmgr handle |
[out] | config | netmgr config information |
netmgr_hdl_t netmgr_get_dev | ( | const char * | name | ) |
get netmgr handler
[in] | name | name of netmgr dev |
int netmgr_get_ifconfig | ( | netmgr_hdl_t | hdl, |
netmgr_ifconfig_info_t * | info | ||
) |
get if config information
[in] | hdl | netmgr handle |
[out] | info | config information |
int netmgr_get_state | ( | netmgr_hdl_t | hdl | ) |
get state of hdl
[in] | hdl | netmgr handle |
int netmgr_save_config | ( | netmgr_hdl_t | hdl | ) |
netmgr save config
[in] | hdl | netmgr handle |
void netmgr_service_deinit | ( | ) |
net manager deinit
int netmgr_service_init | ( | utask_t * | task | ) |
net manager init.
[in] | task | NULL for current realize. |
void netmgr_set_auto_reconnect | ( | netmgr_hdl_t | hdl, |
bool | enable | ||
) |
set auto reconnect flag
[in] | hdl | netmgr handle |
[in] | enable | enable auto reconnect |
int netmgr_set_connect_params | ( | netmgr_hdl_t | hdl, |
netmgr_connect_params_t * | params | ||
) |
netmgr set connect params
[in] | hdl | netmgr handle |
[in] | params | netmgr connect params |
int netmgr_set_ifconfig | ( | netmgr_hdl_t | hdl, |
netmgr_ifconfig_info_t * | info | ||
) |
set if config information
[in] | hdl | netmgr handle |
[in] | info | config information |
int netmgr_set_msg_cb | ( | netmgr_hdl_t | hdl, |
netmgr_msg_cb_t | cb | ||
) |
netmgr set message callback
[in] | hdl | netmgr handle |
[in] | cb | netmgr msg callback |