MOVERIO Pro Developer's Guide (Rev.1.4)
160
8.8.29.
BluetoothLeGattCallback.onDiscPriSrvResult
Function
Provide an interface for the callback function to receive search results for the Primary
Service.
Related API: discPriSrv
Format
Parameter
Model name
Explanation
char connectedHandle
Connection handle
int status
Search results
* Returns the value defined in
BluetoothLeChipCode.GattStatus
BluetoothLeGattService[] data
Service information
Search results
BluetoothLeChipCode.GattStatus definition
public static class GattStatus {
/** Success. */
public static final int BLE_GATT_STATUS_SUCCESS = 0x0000;
/** Unknown or not applicable status. */
public static final int BLE_GATT_STATUS_UNKNOWN = 0x0001;
/** ATT Error: Invalid Error Code. */
public static final int BLE_GATT_STATUS_ATTERR_INVALID = 0x0100;
/** ATT Error: Invalid Attribute Handle. */
public static final int BLE_GATT_STATUS_ATTERR_INVALID_HANDLE = 0x0101;
/** ATT Error: Read not permitted. */
public static final int BLE_GATT_STATUS_ATTERR_READ_NOT_PERMITTED = 0x0102;
/** ATT Error: Write not permitted. */
public static final int BLE_GATT_STATUS_ATTERR_WRITE_NOT_PERMITTED = 0x0103;
/** ATT Error: Used in ATT as Invalid PDU. */
public static final int BLE_GATT_STATUS_ATTERR_INVALID_PDU = 0x0104;
/** ATT Error: Authenticated link required. */
public static final int BLE_GATT_STATUS_ATTERR_INSUF_AUTHENTICATION = 0x0105;
/** ATT Error: Used in ATT as Request Not Supported. */
public static final int BLE_GATT_STATUS_ATTERR_REQUEST_NOT_SUPPORTED = 0x0106;
/** ATT Error: Offset specified was past the end of the attribute. */
public static final int BLE_GATT_STATUS_ATTERR_INVALID_OFFSET = 0x0107;
/** ATT Error: Used in ATT as Insufficient Authorization. */
public static final int BLE_GATT_STATUS_ATTERR_INSUF_AUTHORIZATION = 0x0108;
/** ATT Error: Used in ATT as Prepare Queue Full. */
public static final int BLE_GATT_STATUS_ATTERR_PREPARE_QUEUE_FULL = 0x0109;
/** ATT Error: Used in ATT as Attribute not found. */
public static final int BLE_GATT_STATUS_ATTERR_ATTRIBUTE_NOT_FOUND = 0x010A;
void onDiscPriSrvResult(char connectedHandle, int status ,
BluetoothLeGattService[] data);
Summary of Contents for Moverio Pro BT-2000
Page 7: ...MOVERIO Pro Developer s Guide Rev 1 4 1 1 Introduction ...
Page 12: ...MOVERIO Pro Developer s Guide Rev 1 4 6 2 Developing Apps ...
Page 30: ...MOVERIO Pro Developer s Guide Rev 1 4 24 3 Display control ...
Page 39: ...MOVERIO Pro Developer s Guide Rev 1 4 33 4 UI control ...
Page 47: ...MOVERIO Pro Developer s Guide Rev 1 4 41 5 Voice commands ...
Page 70: ...MOVERIO Pro Developer s Guide Rev 1 4 64 6 Camera control ...
Page 119: ...MOVERIO Pro Developer s Guide Rev 1 4 113 7 Sensor control ...
Page 127: ...MOVERIO Pro Developer s Guide Rev 1 4 121 8 Bluetooth BLE ...
Page 184: ...MOVERIO Pro Developer s Guide Rev 1 4 178 9 Power control ...
Page 187: ...MOVERIO Pro Developer s Guide Rev 1 4 181 10 Self diagnostic function ...
Page 191: ...MOVERIO Pro Developer s Guide Rev 1 4 185 11 GPS Assist ...
Page 202: ...MOVERIO Pro Developer s Guide Rev 1 4 196 Memo ...