mesh: modify parent switch mechanism

1. modify parent switch mechanism.
2. fix non-root doesn't clear the layer value in nvs.
3. fix retransmit the remove announcement packets.
4. add API esp_mesh_flush_upstream_packets().
5. automatically adjust passsive scan time based on the change of beacon interval.
This commit is contained in:
qiyuexia
2018-08-08 13:08:41 +08:00
committed by qiyueixa
parent f1a4bc7c94
commit 93c0c8da6b
3 changed files with 25 additions and 19 deletions

View File

@@ -1312,6 +1312,14 @@ esp_err_t esp_mesh_scan_get_ap_ie_len(int *len);
*/
esp_err_t esp_mesh_scan_get_ap_record(wifi_ap_record_t *ap_record, void *buffer);
/**
* @brief flush upstream packets pending in to_parent queue and to_parent_p2p queue
*
* @return
* - ESP_OK
*/
esp_err_t esp_mesh_flush_upstream_packets(void);
#ifdef __cplusplus
}
#endif