I have two characters, that I get by Bluetooth.
char a = SerialBT.read(); char b = SerialBT.read();
According to the Arduino Reference, decoded data stored in a char gets encoded to ASCII text.
I want to combine them in an Intenger, but the following methods don't work:
int c = a + b;
int c = (int)a + (int)b;
int c = (a - 48) + (b - 48);
String c; c.setCharAt(0, a); c.setCharAt(1, b);