| | |
| | | Map.Entry entry = (Map.Entry) iterator.next(); |
| | | Object call = entry.getValue(); |
| | | if (call instanceof BluetoothGattCallback) { |
| | | gatt.requestMtu(64); |
| | | ((BluetoothGattCallback) call).onServicesDiscovered(gatt, status); |
| | | } |
| | | } |
| | |
| | | Map.Entry entry = (Map.Entry) iterator.next(); |
| | | Object call = entry.getValue(); |
| | | if (call instanceof BluetoothGattCallback) { |
| | | gatt.requestMtu(64); |
| | | ((BluetoothGattCallback) call).onCharacteristicChanged(gatt, characteristic); |
| | | } |
| | | } |
| | |
| | | @Override |
| | | public void onDescriptorRead(BluetoothGatt gatt, BluetoothGattDescriptor descriptor, int status) { |
| | | BleLog.i("BleGattCallback:onDescriptorRead "); |
| | | |
| | | Iterator iterator = callbackHashMap.entrySet().iterator(); |
| | | while (iterator.hasNext()) { |
| | | Map.Entry entry = (Map.Entry) iterator.next(); |