MOVERIO Pro Developer's Guide (Rev.1.4)
140
8.8.9.
connect
Function
Specify the partner BD address (remote BD address), connection timeout, and the number
of times to retry, and then connect.
Format
Parameter
Model name
Explanation
AddrType addrType
Remote BD address classification
*See "BD address classification" for more details
String
Remote BD address
int timeout
Timeout time (ms)
Set from 120 to 32000 ms in increments of 10 ms.
int retryReconnect
Number of retry times
Return value
Model Explanation
int
BluetoothLeChipCode.SUCCESS: success
BluetoothLeChipCode.BaseError.INVALID_ADDR: invalid memory address
BluetoothLeChipCode.BaseError.INVALID_PARAM: invalid parameter
BluetoothLeChipCode.BaseError.INVALID_STATE: invalid status
BluetoothLeChipCode.BaseError.INVALID_ADDR: invalid remote BD address
BluetoothLeChipCode.BaseError.NO_MEM: maximum connections
BluetoothLeChipCode.BaseError.BUSY: system busy status
Usage method
To receive connection processing results, you need to register the callback function in
setGapCallback in advance.
The following callback function sends a notification for connection processing results.
BluetoothLeGapCallback.onConnectResult
BD address classification
Value
Explanation
BluetoothLeGapCallback.AddrType.PUBLIC
Public
BluetoothLeGapCallback.AddrType.RANDOM_STATIC
Random
BluetoothLeGapCallback.AddrType.RANDOM_PRIVATE_RESOLVABLE
BluetoothLeGapCallback.AddrType.RANDOM_PRIVATE_NON_RESOLVABLE
int connect(AddrType addrType, String addr, int timeout, int retryReconnect);
Содержание Moverio Pro BT-2000
Страница 7: ...MOVERIO Pro Developer s Guide Rev 1 4 1 1 Introduction ...
Страница 12: ...MOVERIO Pro Developer s Guide Rev 1 4 6 2 Developing Apps ...
Страница 30: ...MOVERIO Pro Developer s Guide Rev 1 4 24 3 Display control ...
Страница 39: ...MOVERIO Pro Developer s Guide Rev 1 4 33 4 UI control ...
Страница 47: ...MOVERIO Pro Developer s Guide Rev 1 4 41 5 Voice commands ...
Страница 70: ...MOVERIO Pro Developer s Guide Rev 1 4 64 6 Camera control ...
Страница 119: ...MOVERIO Pro Developer s Guide Rev 1 4 113 7 Sensor control ...
Страница 127: ...MOVERIO Pro Developer s Guide Rev 1 4 121 8 Bluetooth BLE ...
Страница 184: ...MOVERIO Pro Developer s Guide Rev 1 4 178 9 Power control ...
Страница 187: ...MOVERIO Pro Developer s Guide Rev 1 4 181 10 Self diagnostic function ...
Страница 191: ...MOVERIO Pro Developer s Guide Rev 1 4 185 11 GPS Assist ...
Страница 202: ...MOVERIO Pro Developer s Guide Rev 1 4 196 Memo ...