MOVERIO Pro Developer's Guide (Rev.1.4)
149
8.8.18.
readGatt
Function
Start acquiring Characteristic Values/Characteristic Descriptors for the connected BLE
device.
Use format -2 when handling Characteristic Values/Characteristic Descriptors with a long
data length.
Format -1
Format -2
Parameter
Model
name
Explanation
char connectedHandle
Connection handle
char handle
Handle location for Characteristic Value
char offset
Reading location for the value
Return value
Model
Explanation
int
BluetoothLeChipCode.SUCCESS: success
BluetoothLeChipCode.BaseError.INVALID_ADDR: invalid memory address
BluetoothLeChipCode.BaseError.INVALID_STATE: invalid status
BluetoothLeChipCode.BaseError.BUSY: system busy status
BluetoothLeChipCode.STKError.INVALID_CONN_HANDLE: invalid connection
handle
Usage method
To receive search results, you need to register the callback function in setGattCallback in
advance.
The following callback function sends a notification for search results.
BluetoothLeGattCallback.onReadGattResult
int readGatt(char connectedHandle, char handle);
int readGatt(char connectedHandle, char handle, char offset);
Содержание 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 ...