I uploaded the code below to Arduino and the purpose of this is to echo back what has just been sent to it through Serial.
Problem is: it is not echoing back.
Do you guys know why?
Thanks
P.S: I'm using the Serial Monitor provided by the Arduino IDE.
char inByte; // incoming serial byte
void setup() {
// put your setup code here, to run once:
Serial.begin(9600); // serial communication baud rate
}
void loop() {
// while loop begins here, continous loop:
if (Serial.available()) { // check for incoming data --> if available
inByte = Serial.read(); // store incoming data
Serial.print(inByte); // echo back the data
}
}
I suppose I should try this scenario, disconnect arduino tx and see what error message (if at all) pops up during a sketch upload. I assumed there would be an error I don't actually have any experience.