Slide 32
Slide 32 text
The GATT Protocol
class BluetoothAdapterLeScanCallback {
void onLeScan(BluetoothDevice device, int rssi, byte[] scanRecord) {
device.connectGatt(context, false, mBluetoothGattReceiver);
}
}
class BluetoothGattReceiver {
@Override
public void onConnectionStateChange(BluetoothGatt gatt, int status,
int newState) {}
}
32