Epson BT-2000 Developers Guide - Page 143

Related API: discPriSrv

Page 143 highlights

8.7.29. BluetoothLeGattCallback.onDiscPriSrvResult  Function Provide an interface for the callback function to receive search results for the Primary Service.  Related API: discPriSrv  Format void onDiscPriSrvResult(char connectedHandle, int status , BluetoothLeGattService[] data);  Parameter Model name char connectedHandle int status BluetoothLeGattService[] data  Search results Explanation Connection handle Search results * Returns the value defined in BluetoothLeChipCode.GattStatus Service information 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 Authorisation. */ public static final int BLE_GATT_STATUS_ATTERR_INSUF_AUTHORIZATION = 0x0108; /** ATT Error: Used in ATT as Prepare Queue Full. */ MOVERIO Pro Developer's Guide (Rev.1.0) 139

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168

MOVERIO Pro Developer's Guide (Rev.1.0)
139
8.7.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 Authorisation. */
public static final int BLE_GATT_STATUS_ATTERR_INSUF_AUTHORIZATION
= 0x0108;
/** ATT Error:
Used in ATT as Prepare Queue Full. */
void onDiscPriSrvResult(char connectedHandle, int status ,
BluetoothLeGattService[] data);