esp_idf_sys

Function esp_openthread_set_meshcop_instance_name

Source
pub unsafe extern "C" fn esp_openthread_set_meshcop_instance_name(
    instance_name: *const c_char,
) -> esp_err_t
Expand description

@brief Sets the meshcop(e) instance name.

@note This function can only be called before esp_openthread_border_router_init. If instance_name is NULL, then the service will use the hostname as instance name.

@param[in] instance_name The instance name, can be NULL.

@return - ESP_OK on success - ESP_FAIL if fail to initialize RCP