This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
Hi,
How can I write sbyte in serialport?.
I need same thing like:
serialport _serialport;
_serialport.write(sbyte);
Converting sbytes to bytes will give me problems at the other backend.
How can I get it?.
thanks
Ok it works with
sbyte[] signed = { -2, -1, 0, 1, 2 }; byte[] unsigned = new byte[signed.Length]; Buffer.BlockCopy(signed, 0, unsigned, 0, signed.Length);