esp_idf_svc::sys

Function otThreadSetNetworkName

Source
pub unsafe extern "C" fn otThreadSetNetworkName(
    aInstance: *mut otInstance,
    aNetworkName: *const u8,
) -> u32
Expand description

Set the Thread Network Name.

Succeeds only when Thread protocols are disabled. A successful call to this function invalidates the Active and Pending Operational Datasets in non-volatile memory.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aNetworkName A pointer to the Thread Network Name.

@retval OT_ERROR_NONE Successfully set the Thread Network Name. @retval OT_ERROR_INVALID_STATE Thread protocols are enabled.

@sa otThreadGetNetworkName