I have assembled simple analog reader on Arduino UNO platform and sending data through the Bluetooth to Android phone. I am facing strange problem with values not getting into Android phone. I have created an application on Xamarin Forms. On another phone I have downloaded Serial Bluetooth Terminal and it seems to be working without problems so far. So first question I would like to ask, am I sending data the right way from Arduino?
I am using BTserial.begin(115200);
Here is my Arduino code part:
void loop()
{
int tachometerValue = analogRead(A0);
int fuelValue = analogRead(A1);
sensors.requestTemperatures();
float airTemperatureValue = sensors.getTempCByIndex(0);
tachometerValue = ((tachometerValue / 10) * 10) * (10.0 / 1023.0);
int airTemperature = (airTemperatureValue / 10) * 10;
String outputToBT = String(tachometerValue)+","+String(airTemperature);
BTserial.print(outputToBT);
//Serial.print(outputToBT);
//Serial.print('\n');
delay(300);
}
Here is a record of my Xamarin app on Android phone, I am sending three values here separated by comma: