Hi guys i'm trying to read a string and float via xbee and I'm unsure how to read it.
TX platform
#include < eHealth.h >
void setup()
{
Serial.begin(9600);
}
void loop()
{
float temperature = eHealth.getTemperature();
Serial.print("Temperature (C): ");
Serial.print(temperature, 2);
Serial.println("");
delay(1000);
}
RX Platform
void setup()
{
Serial.begin(9600);
}
void loop()
{
if (Serial.available()>0)
{
char c = Serial.read();
Serial.print(c);
}
}
How do I read the whole data which is printout "Temperature (C): 28"
Thanks in advance guys...