Android蓝牙4.0API-类-BluetoothGattCallback
2016-04-28 11:02
375 查看
This abstract class is used to implement
公有的方法
void onCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic)
Callback
triggered引起 as a result of a remote characteristic notification.
void
onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic,
int status)
Callback
reporting the result of a characteristic read operation.
void
onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic,
int status)
Callback
indicating the result of a characteristic write operation.
void
onConnectionStateChange(BluetoothGatt gatt,
int status, int newState)
Callback
indicating when GATT client has connected/disconnected to/from a remote GATT server.
void
onDescriptorRead(BluetoothGatt gatt, BluetoothGattDescriptor descriptor,
int status)
Callback
reporting the result of a descriptor read operation.
void
onDescriptorWrite(BluetoothGatt gatt, BluetoothGattDescriptor descriptor,
int status)
Callback
indicating the result of a descriptor write operation
void
onMtuChanged(BluetoothGatt gatt,
int mtu, int status)
Callback
indicating the MTU for a given device connection has changed.
void
onReadRemoteRssi(BluetoothGatt gatt,
int rssi, int status)
Callback
reporting the RSSI for a remote device connection
void
onReliableWriteCompleted(BluetoothGatt gatt,
int status)
Callback
invoked when a reliable write transaction has been completed.
void
onServicesDiscovered(BluetoothGatt gatt,
int status)
Callback
invoked when the list of remote services, characteristics and descriptors for the remote device have been updated, ie new services have been discovered.
BluetoothGattcallbacks.
公有的方法
void onCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic)
Callback
triggered引起 as a result of a remote characteristic notification.
void
onCharacteristicRead(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic,
int status)
Callback
reporting the result of a characteristic read operation.
void
onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic,
int status)
Callback
indicating the result of a characteristic write operation.
void
onConnectionStateChange(BluetoothGatt gatt,
int status, int newState)
Callback
indicating when GATT client has connected/disconnected to/from a remote GATT server.
void
onDescriptorRead(BluetoothGatt gatt, BluetoothGattDescriptor descriptor,
int status)
Callback
reporting the result of a descriptor read operation.
void
onDescriptorWrite(BluetoothGatt gatt, BluetoothGattDescriptor descriptor,
int status)
Callback
indicating the result of a descriptor write operation
void
onMtuChanged(BluetoothGatt gatt,
int mtu, int status)
Callback
indicating the MTU for a given device connection has changed.
void
onReadRemoteRssi(BluetoothGatt gatt,
int rssi, int status)
Callback
reporting the RSSI for a remote device connection
void
onReliableWriteCompleted(BluetoothGatt gatt,
int status)
Callback
invoked when a reliable write transaction has been completed.
void
onServicesDiscovered(BluetoothGatt gatt,
int status)
Callback
invoked when the list of remote services, characteristics and descriptors for the remote device have been updated, ie new services have been discovered.
相关文章推荐
- iOS 之 UITableView 使用详解/性能优化/UITableViewCell/UITableViewController
- SSh结合Easyui实现Datagrid的分页显示
- make 2>&1 tee build_log.txt
- iOS 之 UITableView 使用详解
- Android蓝牙4.0API-类-BluetoothGatt
- UIControl 的基本使用方法和 Target-Action 机制
- 2016.04.28,英语,《Vocabulary Builder》Unit 20
- An instance 0x15718ca00 of class UITableView was deallocated while key value observers were still re
- iOS开发出现CUICatalog: Invalid asset name supplied:
- [CareerCup] 17.12 Sum to Specific Value 和为特定数
- iOS 之 UISegmentedControl 使用详解
- UIButton属性设置的优先级userInteractionEnabled,selected,enabled
- 如何解决css帧keyframes在yuicompressor下压缩问题
- iOS 之 UIProgressView 使用详解
- android:supportsRtl="true" 属性
- oc基本动画实现
- 如何把图片存储到相册簿
- Android蓝牙4.0API内容-接口-BluetoothProfile
- 通过运行时来修改我们的UITextField的Placeholder的文字颜色
- 浅谈iOS中的蓝牙技术(二) -- CoreBluetooth