Hello
I have arduino due connected to xbee shield
it sends data through serial port normally
but data cannot be read from serial port, something like if there is no serial port at all
other types of arduino such as arduino mega is functioning normally
other serial ports Serial1, Serial2.... are used for another purposes
any one can help me please?
the code of receiving as follows:
main(){
Serial.begin(9600);
}
loop(){
Serial.println(Serial.read());// alway -1 with arduino due
}