Skip to content

Commit 105637a

Browse files
authored
Return GATT_SUCCESS when Descriptor is read
Existing code was returning GATT_FAILURE for all code paths in onDescriptorReadRequest - if the config descriptor matches and is valid, GATT_SUCCESS should be returned along with the correct value for ENABLE/DISABLE notification
1 parent 654706c commit 105637a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/example/androidthings/gattserver/GattServerActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public void onDescriptorReadRequest(BluetoothDevice device, int requestId, int o
360360
}
361361
mBluetoothGattServer.sendResponse(device,
362362
requestId,
363-
BluetoothGatt.GATT_FAILURE,
363+
BluetoothGatt.GATT_SUCCESS,
364364
0,
365365
returnValue);
366366
} else {

0 commit comments

Comments
 (0)