24 #ifndef __LWIP_API_MESH_H__ 25 #define __LWIP_API_MESH_H__ 34 #define ESP_MESH_GROUP_ID_LEN (6) 141 uint8_t **info, uint8_t *count);
void espconn_mesh_print_ver()
To print version of mesh.
uint8_t grp_id[ESP_MESH_GROUP_ID_LEN]
#define ESP_MESH_GROUP_ID_LEN
bool espconn_mesh_get_router(struct station_config *router)
Get the information of router used by mesh network.
int8_t espconn_mesh_get_status()
Get current mesh status.
bool espconn_mesh_group_id_init(uint8_t *grp_id, uint16_t gid_len)
Set group ID of mesh node.
void espconn_mesh_enable(espconn_mesh_callback enable_cb, enum mesh_type type)
To enable mesh network.
bool espconn_mesh_encrypt_init(AUTH_MODE mode, uint8_t *passwd, uint8_t passwd_len)
Set WiFi cryption algrithm and password for mesh node.
void(* espconn_mesh_callback)()
bool espconn_mesh_local_addr(struct ip_addr *ip)
Check whether the IP address is mesh local IP address or not.
espconn_mesh_scan_callback usr_scan_cb
void(* espconn_mesh_scan_callback)(void *arg, int8_t status)
void espconn_mesh_disable(espconn_mesh_callback disable_cb)
To disable mesh network.
int8_t espconn_mesh_disconnect(struct espconn *usr_esp)
Disconnect a mesh connection.
uint8_t espconn_mesh_get_max_hops()
Get max hop of mesh network.
void espconn_mesh_scan(struct mesh_scan_para_type *para)
To get AP around node.
bool espconn_mesh_server_init(struct ip_addr *ip, uint16_t port)
Set server setup by user.
uint8_t espconn_mesh_get_dev_type()
Get the curent device type.
bool espconn_mesh_set_ssid_prefix(uint8_t *prefix, uint8_t prefix_len)
Set prefix of SSID for mesh node.
int8_t espconn_mesh_connect(struct espconn *usr_esp)
Try to establish mesh connection to server.
bool espconn_mesh_get_node_info(enum mesh_node_type type, uint8_t **info, uint8_t *count)
Get the information of mesh node.
int8_t espconn_mesh_sent(struct espconn *usr_esp, uint8 *pdata, uint16 len)
Send data through mesh network.
bool espconn_mesh_set_max_hops(uint8_t max_hops)
Set max hop for mesh network.
bool espconn_mesh_set_router(struct station_config *router)
Set the information of router used by mesh network.
enum _auth_mode AUTH_MODE
bool espconn_mesh_set_dev_type(uint8_t dev_type)
Set the curent device type.