byte[] a
has value of {119}, which is the ascii equivalent of "w", but when I use .toString()
to convert it to string, it gives me a weird string. any idea what I did wrong?
byte[] a = characteristicRX.getValue();
String rscvString = a.toString();
Log.d("byteToHex", "rscvString = " + rscvString);
while ( rscvString != "w" ){
See Question&Answers more detail:os