I tried the following program and find that the loop does not enter after Serial1.available() . The Serial1.available is not working , please help!! , Whereas if I try SerialUSB.available() The program works fine. I shorted the Tx(6) and Rx(7) pins of xiao
Have yo tested whether you get the correct string on the Machine when you just do Serial.println (“This will test the functionality of the serial”); After your time in setup()? the next thing to test could be if the port of Serial 1 really fit for your data source.
Thank you so much but the previous values are pushed only when I send the next value , that is when I enter 1 in serial monitor first and then 2 , the 1 is reflected in serial monitor only after I enter 2 .