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

When I write data to the device, the device is automatically disconnected. #37

Closed
AXAET opened this issue Jun 24, 2016 · 1 comment
Closed

Comments

@AXAET
Copy link

AXAET commented Jun 24, 2016

When I write data to the device, the data is written to the success.But the Bluetooth device will automatically disconnect.The error that is displayed in Samsung S6 is "BleGattException{status=10, bleGattOperation=BleGattOperation{description='CHARACTERISTIC_WRITE'}}",but in other mobile phones, it is " BleGattException{status=133, bleGattOperation=BleGattOperation{description='CHARACTERISTIC_WRITE'}} ".I want to know how to solve it.I'm running an example.thanks

@dariuszseweryn
Copy link
Owner

Hello there.
Do you know to what device you're talking to? Do you know what characteristic you want to write?

Both of these statuses come from Android Bluetooth Stack and we cannot do much.
Status 133 is GATT_ERROR and status 10 is GATT_NOT_FOUND.

Perhaps you're trying to write a characteristic that is read only?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants