openthread_sys

Function otServerAddService

Source
pub unsafe extern "C" fn otServerAddService(
    aInstance: *mut otInstance,
    aConfig: *const otServiceConfig,
) -> otError
Expand description

Add a service configuration to the local network data.

@param[in] aInstance A pointer to an OpenThread instance. @param[in] aConfig A pointer to the service configuration.

@retval OT_ERROR_NONE Successfully added the configuration to the local network data. @retval OT_ERROR_INVALID_ARGS One or more configuration parameters were invalid. @retval OT_ERROR_NO_BUFS Not enough room is available to add the configuration to the local network data.

@sa otServerRemoveService @sa otServerRegister