Function esp_idf_hal::sys::esp_mesh_set_vote_percentage

source ยท
pub unsafe extern "C" fn esp_mesh_set_vote_percentage(
    percentage: f32,
) -> i32
Expand description

@brief 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.

@param[in] percentage vote percentage threshold

@return

  • ESP_OK
  • ESP_FAIL