esp_mesh_set_ap_assoc_expire() function
Set mesh softAP associate expired time (default:10 seconds) - If mesh softAP hasn't received any data from an associated child within this time, mesh softAP will take this child inactive and disassociate it. - If mesh softAP is encrypted, this value should be set a greater value, such as 30 seconds.
Return value
- ESP_OK - ESP_FAIL