openthread_sys

Function otSrpServerSetAddressMode

Source
pub unsafe extern "C" fn otSrpServerSetAddressMode(
    aInstance: *mut otInstance,
    aMode: otSrpServerAddressMode,
) -> otError
Expand description

Sets the address mode to be used by the SRP server.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aMode The address mode to use.

@retval OT_ERROR_NONE Successfully set the address mode. @retval OT_ERROR_INVALID_STATE The SRP server is enabled and the address mode cannot be changed.