Skip to content

Commit

Permalink
[Android] fix exception in writeDescriptorRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
chipweinberger committed Jul 17, 2023
1 parent 33fa230 commit 4fcbaa5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1416,8 +1416,9 @@ public void onDescriptorWrite(BluetoothGatt gatt, BluetoothGattDescriptor descri
HashMap<String, Object> request = new HashMap<>();
request.put("remote_id", gatt.getDevice().getAddress());
request.put("descriptor_uuid", descriptor.getUuid().toString());
request.put("service_uuid", descriptor.getCharacteristic().getService().getUuid().toString());
request.put("characteristic_uuid", descriptor.getCharacteristic().getUuid().toString());
request.put("uuid", descriptor.getCharacteristic().getService().getUuid().toString());
request.put("value", "");

// see: BmWriteDescriptorResponse
HashMap<String, Object> response = new HashMap<>();
Expand Down

0 comments on commit 4fcbaa5

Please sign in to comment.