How to interpret Serial data received by Bluetooth module I'm experimenting with a hc-05 knockoff the JDY-30 and am confused about the Serial data I'm getting from it. I downloaded an app called BlueUino to send commands from my Android to my Arduino Uno via Bluetooth. I then print the data I get via Serial port using the code below:
  if(Serial.available() &gt; 0){ // Checks whether data is comming from the serial port
    state = '1'; //Serial.read(); // Reads the data from the serial port0
    stateData = Serial.read();
    sprintf(data, &quot;Data is %u&quot;, stateData);
    Serial.println(data);
    Serial.println();
 }

Here are some of the results I get in the log which I can't make sense of. For example, sending the string &quot;def&quot; doesn't contain the sequence of data from sending the command &quot;e&quot;. Also, how does one convert these values to characters ?
Send Command &quot;b&quot;
Data is 128
Data is 0
Data is 248

Send Command &quot;abc&quot;:
Data is 120 // doesn't contain the sequence of Data of &quot;b&quot;
Data is 120
Data is 120
Data is 0
Data is 120
Data is 0
Data is 248
Or just storing the inbound data in a char type and use single quotes when parsing incoming bytes so that the compiler knows your dealing with ASCII, print them out on serial and they should be familiar characters, of course with the baud rate mismatch fixed