[−][src]Function openthread_sys::otPlatBleGapConnect
pub unsafe extern "C" fn otPlatBleGapConnect(
aInstance: *mut otInstance,
aAddress: *mut otPlatBleDeviceAddr,
aInterval: u16,
aWindow: u16
) -> otError
Starts BLE Connection procedure.
@note This function shall be used only for BLE Central role.
@param[in] aInstance The OpenThread instance structure. @param[in] aAddress An address of the advertising device. @param[in] aInterval The scanning interval in OT_BLE_SCAN_INTERVAL_UNIT units. Shall be in OT_BLE_SCAN_INTERVAL_MIN and OT_BLE_SCAN_INTERVAL_MAX range. @param[in] aWindow The scanning window in OT_BLE_SCAN_WINDOW_UNIT units. Shall be in OT_BLE_SCAN_WINDOW_MIN and OT_BLE_SCAN_WINDOW_MAX range.
@retval ::OT_ERROR_NONE Connection procedure has been started. @retval ::OT_ERROR_INVALID_STATE BLE Device is in invalid state. @retval ::OT_ERROR_INVALID_ARGS Invalid address, interval or window value has been supplied.