Paul,
Thanks a lot. Feel grateful to you for always providing constructive suggestion technically and morally. As you pointed out, the voltage singal I would like to deliver from one-to one Xbee communication system should be ASCII type data, I modified my code.
int myData = 0; // for incoming serial data
void setup() {
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
Serial1.begin(9600);
while(!Serial){
;
}
}
void loop() {
while(Serial1.available()>0){
myData = Serial.print(Serial1.read()); //input from Serial1 to Serial
}
// send data only when you receive data:
if (Serial.available() > 0) {
// read the incoming byte:
// incomingByte = Serial.parseFloat();
// float voltage =incomingByte*3.3;
// say what you got:
//Serial.print("I received: ");
Serial.print(myData, DEC);
// Serial.println(incomingByte);
}
}
The readout from serial monitor pop up window is
1260101311852520120325525312601013118525201200100155