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

How to convert data byte to string and display it ? #5

Open
syahrialr opened this issue Dec 2, 2021 · 3 comments
Open

How to convert data byte to string and display it ? #5

syahrialr opened this issue Dec 2, 2021 · 3 comments

Comments

@syahrialr
Copy link

Hi, I want to convert the data byte to string and display it. Any tutor?

@wagenheimer
Copy link

Did you managed to make it?

I need to read a string from it.

@syahrialr
Copy link
Author

syahrialr commented Jun 4, 2022

I stuck in that, so i move to Flutter

@wagenheimer
Copy link

I managed to make it.

var text="";
for (int index = 0; index < recivedEventArgs.Buffer.Length; index++)
{
byte value = recivedEventArgs.Buffer.ToArray()[index];
text += (char)recivedEventArgs.Buffer.ToArray()[index];
}

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