Function otDatasetSetPending

Source
pub unsafe extern "C" fn otDatasetSetPending(
    aInstance: *mut otInstance,
    aDataset: *const otOperationalDataset,
) -> otError
Expand description

Sets the Pending Operational Dataset.

This function consistently returns OT_ERROR_NONE and can effectively be treated as having a void return type. Previously, other errors (e.g., OT_ERROR_NOT_IMPLEMENTED) were allowed for legacy reasons. However, as non-volatile storage is now mandatory for Thread operation, any failure to save the dataset will trigger an assertion. The otError return type is retained for backward compatibility.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aDataset A pointer to the Pending Operational Dataset.

@retval OT_ERROR_NONE Successfully set the Pending Operational Dataset.