您好我尝试从Arduino接收数据到Android手机。 Android编码如下: App crashed due to looper.prepare() in the beginlistendata() function
Arduino代码如下:
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
我得到了============ Spo2在我的Android手机上快速闪烁。此外,我没有收到更新的值,就像我应该收到Spo2 99,但我得到Spo2:0
另外,如何将数据传递给其他活动?