-
Notifications
You must be signed in to change notification settings - Fork 15
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
Unable to read data using .value property from a BluetoothCharacteristic object. #13
Comments
You might be running in to the bug where the event that listens to value change event has a typo in it (I still need to release a new version for that) Try Edit: you can also try and import the package from the git directly. https://flutter.dev/docs/development/packages-and-plugins/using-packages |
@jeroen1602
I also removed the package from
and I got the same result. Am I missing anything? |
Some operations are not supported based on how the characteristic is set up. You should be able to check what is supported by reading the properties of the characteristic. But did you also try |
@jeroen1602
and here are the results:
Couple of notes:
|
@JooYoo This seems to be a bug with the chrome version that is running on Android. You can avoid this error by checking it the characteristic supports reading with You could try enabling the You could also try using a BLE app on your phone to see if that is able to read from the characteristic, it may just be the Bluetooth implementation on the phone. |
Hi,
After going through a ton of effort, I'm still unable to read data. Please help!
I'm using this simple code to read data from a characteristic but the
value
stream seems to be empty.I printed out the readCharacteristic.uuid to make sure that the characteristic is recognized properly. But when I'm expecting to receive data immediately, after 10 seconds the timeout exceeds and I catch a timeout error which I suppose indicates that the stream was empty until that time. If I'm being correct, at least my terminal should have prompted the properties of whatever ByteData is being received.
I have also tried
.lastValue
.To make sure that my transmitter device is indeed transmitting, I successfully read data using two other platforms using a similar method.
Regards.
The text was updated successfully, but these errors were encountered: