| | |
| | | @Override |
| | | public void onDisConnected(BluetoothGatt gatt, int status, BleException exception) { |
| | | BleLog.i("BleGattCallback:onConnectFailure "); |
| | | |
| | | closeBluetoothGatt(); |
| | | bluetoothGatt = null; |
| | | Iterator iterator = callbackHashMap.entrySet().iterator(); |
| | |
| | | |
| | | @Override |
| | | public void onServicesDiscovered(BluetoothGatt gatt, int status) { |
| | | BleLog.i("BleGattCallback:onServicesDiscovered "); |
| | | BleLog.i("BleGattCallback:onServicesDiscovered " + mtu); |
| | | bluetoothGatt.requestMtu(mtu); |
| | | connectionState = STATE_SERVICES_DISCOVERED; |
| | | Iterator iterator = callbackHashMap.entrySet().iterator(); |
| | |
| | | @Override |
| | | public void onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) { |
| | | BleLog.i("BleGattCallback:onCharacteristicWrite "); |
| | | |
| | | Iterator iterator = callbackHashMap.entrySet().iterator(); |
| | | while (iterator.hasNext()) { |
| | | Map.Entry entry = (Map.Entry) iterator.next(); |
| | |
| | | |
| | | @Override |
| | | public void onCharacteristicChanged(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic) { |
| | | BleLog.i("BleGattCallback:onCharacteristicChanged "); |
| | | BleLog.i("BleGattCallback:onCharacteristicChanged " + characteristic.getValue().length); |
| | | Iterator iterator = callbackHashMap.entrySet().iterator(); |
| | | while (iterator.hasNext()) { |
| | | Map.Entry entry = (Map.Entry) iterator.next(); |