25 #ifndef __LWIP_API_MESH_H__
26 #define __LWIP_API_MESH_H__
28 #include "lwip/ip_addr.h"
35 typedef void (* espconn_mesh_callback)();
93 uint8_t **info, uint8_t *count);
bool espconn_mesh_set_dev_type(uint8_t dev_type)
Set the curent device type.
bool espconn_mesh_set_max_hops(uint8_t max_hops)
Set max hop for mesh network.
AUTH_MODE
Definition: esp_wifi.h:59
void espconn_mesh_init()
To print version of mesh.
sint8 espconn_mesh_get_status()
Get current mesh status.
mesh_node_type
Definition: mesh.h:63
sint8 espconn_mesh_disconnect(struct espconn *usr_esp)
Disconnect a mesh connection.
sint8 espconn_mesh_connect(struct espconn *usr_esp)
Try to establish mesh connection to server.
bool espconn_mesh_local_addr(struct ip_addr *ip)
Check whether the IP address is mesh local IP address or not.
void espconn_mesh_enable(espconn_mesh_callback enable_cb, enum mesh_type type)
To enable mesh network.
void espconn_mesh_disable(espconn_mesh_callback disable_cb)
To disable mesh network.
bool espconn_mesh_get_node_info(enum mesh_node_type type, uint8_t **info, uint8_t *count)
Get the information of mesh node.
bool espconn_mesh_set_ssid_prefix(uint8_t *prefix, uint8_t prefix_len)
Set prefix of SSID for mesh node.
Definition: espconn.h:150
bool espconn_mesh_encrypt_init(AUTH_MODE mode, uint8_t *passwd, uint8_t passwd_len)
Set WiFi cryption algrithm and password for mesh node.
mesh_status
Definition: mesh.h:55
sint8 espconn_mesh_sent(struct espconn *usr_esp, uint8 *pdata, uint16 len)
Send data through mesh network.
bool espconn_mesh_group_id_init(uint8_t *grp_id, uint16_t gid_len)
Set group ID of mesh node.
uint8 espconn_mesh_get_max_hops()
Get max hop of mesh network.