This is the message Im sending away and I get the wrong answer when I receive it. So how do I get the return Encoding.ASCII.GetBytes(response); as a string when i send it away?
I think its something wrong with the ASCII translation?
public byte[] diagnostic()
{
string response = Send(new byte[] { 0x30 });
return Encoding.ASCII.GetBytes(response); // To string?
}
string response = "Hello world!";
var o = Encoding.ASCII.GetBytes(response); // To string?
var s = Encoding.ASCII.GetString(o);
Is this answering your question?
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments