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

Data loss while streaming from characteristicValueStream #6

Open
ext-danny opened this issue Jul 7, 2022 · 7 comments
Open

Data loss while streaming from characteristicValueStream #6

ext-danny opened this issue Jul 7, 2022 · 7 comments

Comments

@ext-danny
Copy link

I was printing the value from the stream

WinBle.characteristicValueStream.listen((event) { log('$event', name: '#characteristicValueStream'); });

There is data loss from the plugin. How do you propose to handle it?

@rohitsangwan01
Copy link
Owner

@ext-danny can you explain in detail , with sample like what you are getting and what was expected

@ext-danny
Copy link
Author

ext-danny commented Jul 7, 2022

@rohitsangwan01 So once I connect and subscribe I would be sending a command to fetch some detail of a ble device which would be sending me 8 lines of data

Expected output

Data Format v1.0<\r><\n>
ID: Name<\r><\n>
1: Sensor_1<\r><\n>
2: Sensor_2<\r><\n>
3: Sensor_3<\r><\n>
6: Sensor_6<\r><\n>
8: Sensor_8<\r><\n>
10: Sensor_10<\r><\n>

Received Output

Data Format v1.0<\r><\n>
ID: Name<\r><\n>
1: Sensor_1<\r><\n>
6: Sensor_6<\r><\n>
8: Sensor_8<\r><\n>
10: Sensor_10<\r><\n>

This is just one example but on multiple tries the data loss is different.
And at times I get only the first line when I send the command and the rest of the data when I send the command again.

@rohitsangwan01
Copy link
Owner

@ext-danny can you test on Android NrfConnect or any other Windows app , just to confirm

@ext-danny
Copy link
Author

@rohitsangwan01 yep sure. it is working fine on Android I'm able to get the expected output but will also check on windows using other Windows app.

@ext-danny
Copy link
Author

Hi @rohitsangwan01 is there any app that you would suggest to check on the windows cause like I said the android part works as expected every time.

@rohitsangwan01
Copy link
Owner

@ext-danny can you share complete Logs

@rohitsangwan01
Copy link
Owner

@ext-danny please try with latest version now V1.0.0+

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