Hi I trying to receive data from Arduino to Android phone. The Android coding is below: App crashed due to looper.prepare() in the beginlistendata() function
The Arduino code is below:
void setup() {
Serial.begin(9600);
eHealth.initPulsioximeter();
//Attach the inttruptions for using the pulsioximeter.
PCintPort::attachInterrupt(6, readPulsioximeter, RISING);
}
void loop() {
delay(500);
Serial.print("PRbpm : ");
Serial.print(eHealth.getBPM());
Serial.print(" %SPo2 : ");
Serial.print(eHealth.getOxygenSaturation());
Serial.print("\n");
Serial.println("=============================");
delay(500);
}//end of void loop
I am getting ============ Spo2 flashing very fast on my Android phone. And Also I am not receiving the updated value like I was supposed to receive Spo2 99 but I am getting Spo2: 0
Also how do I pass the data to other activity?