735 void * espconn_mesh_create_option(uint8_t otype, uint8_t *ovalue, uint8_t val_len)
The function is used to create mesh option.
bool espconn_mesh_add_option(struct mesh_header_format *head, struct mesh_header_option_format *option)
The function is used to add mesh option in mesh packet.
bool espconn_mesh_regist_conn_ready_cb(espconn_mesh_usr_callback cb)
The function is used to register user callback. If TCP connection with parent node is ready...
bool espconn_mesh_get_router(struct station_config *router)
The function is used to get router AP information used by mesh node.
espconn_mesh_scan_callback usr_scan_cb
Definition: mesh.h:161
uint8_t mac[ESP_MESH_ADDR_LEN]
Definition: mesh.h:86
bool espconn_mesh_group_id_init(uint8_t *grp_id, uint16_t gid_len)
The function is used to init group id for mesh node.
void * espconn_mesh_create_packet(uint8_t *dst_addr, uint8_t *src_addr, bool p2p, bool piggyback_cr, enum mesh_usr_proto_type proto, uint16_t data_len, bool option, uint16_t ot_len, bool frag, enum mesh_option_type frag_type, bool mf, uint16_t frag_idx, uint16_t frag_id)
The function is used to create mesh packet.
bool espconn_mesh_encrypt_init(AUTH_MODE mode, uint8_t *passwd, uint8_t pw_len)
The function is used to init encrypt algorithm and password for mesh AP.
bool espconn_mesh_set_usr_data(struct mesh_header_format *head, uint8_t *usr_data, uint16_t data_len)
The function is used to set user data in mesh packet..
bool espconn_mesh_get_usr_data(struct mesh_header_format *head, uint8_t **usr_data, uint16_t *data_len)
The function is used to get user data in mesh packet..
bool espconn_mesh_local_addr(struct ip_addr *ip)
Check whether the IP address is mesh local IP address or not.
bool espconn_mesh_set_dst_addr(struct mesh_header_format *head, uint8_t *dst_addr)
The function is used to set destination address of mesh packet.
bool espconn_mesh_set_usr_data_proto(struct mesh_header_format *head, enum mesh_usr_proto_type proto)
The function is used to set protocol used by user data in mesh packet.
bool espconn_mesh_get_usr_data_proto(struct mesh_header_format *head, enum mesh_usr_proto_type *proto)
The function is used to get protocol used by user data in mesh packet.
uint8_t grp_id[ESP_MESH_GROUP_ID_LEN]
Definition: mesh.h:162
bool espconn_mesh_get_src_addr(struct mesh_header_format *head, uint8_t **src_addr)
The function is used to get source address of mesh packet.
bool espconn_mesh_get_option(struct mesh_header_format *head, enum mesh_option_type otype, uint16_t oidx, struct mesh_header_option_format **option)
The function is used to get mesh option in mesh packet..
uint16_t sub_count
Definition: mesh.h:85
bool espconn_mesh_set_src_addr(struct mesh_header_format *head, uint8_t *src_addr)
The function is used to set source address of mesh packet.
bool espconn_mesh_get_dst_addr(struct mesh_header_format *head, uint8_t **dst_addr)
The function is used to get destination address of mesh packet.
bool espconn_mesh_get_node_info(enum mesh_node_type type, uint8_t **info, uint16_t *count)
The function is used to get the information of mesh node..
bool espconn_mesh_set_router(struct station_config *router)
The function is used to set router AP information for mesh node.
bool grp_set
Definition: mesh.h:163