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

Cannot receive correct message from my device? #122

Open
ghost opened this issue Dec 5, 2024 · 0 comments
Open

Cannot receive correct message from my device? #122

ghost opened this issue Dec 5, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 5, 2024

I tried to send a long message (about 2000 Bytes, not ASCII encoded string, it is a sensor data package)to my app, then I translated the String object to Uint8List which received in listen function: (String line) {
Uint8List data = Uint8List.fromlist(line.codeunits);
total_data.addAll(data);
}
when the transmission started I cleared the total_data, and when the transmission finnished, I found that the length of total_data was only 1200, where is the problem? And how can I receive the raw data instead of String object?

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

0 participants