mesh: support set new type

If the root is specified (FIXED-ROOT) by set type or set parent, change ie.mesh_type to MESH_ROOT before connect to router
Release emesh_recv_toDS when the root becomes non-root
esp_mesh_set_type now supports MESH_IDLE and MESH_STA
This commit is contained in:
chenyudong
2020-05-06 22:49:36 +08:00
parent e84328382f
commit 040f4be2a7
3 changed files with 11 additions and 2 deletions

View File

@@ -472,6 +472,9 @@ static const esp_err_msg_t esp_err_msg_table[] = {
# endif
# ifdef ESP_ERR_MESH_PS
ERR_TBL_IT(ESP_ERR_MESH_PS), /* 16409 0x4019 */
# endif
# ifdef ESP_ERR_MESH_RECV_RELEASE
ERR_TBL_IT(ESP_ERR_MESH_RECV_RELEASE), /* 16410 0x401a */
# endif
// components/esp_netif/include/esp_netif_types.h
# ifdef ESP_ERR_ESP_NETIF_BASE