[][src]Function openthread_sys::otPlatBleGattServerServicesRegister

pub unsafe extern "C" fn otPlatBleGattServerServicesRegister(
    aInstance: *mut otInstance,
    aServices: *mut otPlatBleGattService
) -> otError

Registers a list of GATT Services and their enclosed Characteristics. The generated handles will be written back into this structure when the BLE stack is enabled.

@note This function shall be used only for GATT Server.

@param[in] aInstance The OpenThread instance structure. @param[in] aServices Null terminated array of service structures to register.

@retval ::OT_ERROR_NONE Service has been successfully registered. @retval ::OT_ERROR_INVALID_STATE BLE Device is in invalid state. @retval ::OT_ERROR_INVALID_ARGS Invalid service UUID has been provided. @retval ::OT_ERROR_NO_BUFS No available internal buffer found.