Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't log written data, as they may not be up-to-date #440

Merged
merged 1 commit into from Nov 28, 2022

Conversation

philips77
Copy link
Member

Android 13 added new API for writing characteristic and descriptor, where the data are given outsize of the BluetoothGattCharacteristic object.
When writing with WRITE_TYPE_NO_RESPONSE the characteristic value is not updated, so in onCharacteristicWrite we still have old data. That is very good, like it should be.

This PR removes logging the written data. They are now logged on DEBUG level when writing the characteristic, so no need to log twice.

@philips77 philips77 merged commit 1484b15 into main Nov 28, 2022
@philips77 philips77 deleted the logging-improvements branch November 28, 2022 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant