Epson BT-2000 Developers Guide - Page 132
Start acquiring Characteristic Values/Characteristic Descriptors for the connected BLE
View all Epson BT-2000 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 132 highlights
8.7.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 int readGatt(char connectedHandle, char handle); Format -2 int readGatt(char connectedHandle, char handle, char offset); Parameter Model name char connectedHandle char handle char offset Explanation Connection handle Handle location for Charcteristic Value 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 MOVERIO Pro Developer's Guide (Rev.1.0) 128