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

请问一下,怎么设置write no response模式? #584

Open
andrew203 opened this issue Jan 27, 2024 · 1 comment
Open

请问一下,怎么设置write no response模式? #584

andrew203 opened this issue Jan 27, 2024 · 1 comment

Comments

@andrew203
Copy link

No description provided.

@hcyAndroid
Copy link

bleconnecter writeCharacteristic 之后 mBluetoothGatt.writeCharacteristic这之前加 if (isWriteWithNoResponse){
mCharacteristic.setWriteType(BluetoothGattCharacteristic.WRITE_TYPE_NO_RESPONSE);
}else {
mCharacteristic.setWriteType(BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT);
}

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

No branches or pull requests

2 participants