Getting ascii from a String
Below are lines of codes how I get the data from serial port.
byte readBuffer = new byte;
int numBytes = inputStream.read(readBuffer);
String result = new String(readBuffer);
This data which I get from serial port is a Delivery Report from GSM modem. I read it 1 character at a time. These characters also contains junk characters like '>', 'Enter Key',etc.. I want to make it more understandable by only putting text characters in a text file. Now for this I want to check the ascii values of these characters.
Can anyone help in How to get the ascii values from a String variable.