Hi Salem,
Thanks to your two suggestions I now am sure that the problem is the one you evoke: using string+= invokes the 'toString' conversion and gives me the ASCII code of the character.
I cannot yet find the solution:
- "Maybe make buffer a regular char rather than an unsigned char." I...
Note: I use Visual C++ 2005
I would like to read the received character from the serial port (e.g. 'a', 'b', ...). Instead I get the ASCII code of the character I received (97, 98, ...). Here's the code I use:
//defining the serial port
System::IO::Ports::SerialPort^ mySerialPort;
...
//in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.