esp_mesh_set_vote_percentage() function
Set vote percentage threshold for approval of being a root (default:0.9) - During the networking, only obtaining vote percentage reaches this threshold, the device could be a root. @attention This API shall be called before mesh is started.
Arguments
percentage
vote percentage threshold
Return value
- ESP_OK - ESP_FAIL