I’m trying to read single characters sent from the Serial Monitor, but it’s not working because Serial.available() is always returning zero. I’m running Arduino IDS 2.2.1 on a MacBook Pro M2. The processor is a NodeMCU-32s. Serial.print() and Serial.println() are working fine to write text to the SM. Since there is no longer a “SEND” button, I’ve tried sending the character using, Enter, Cntl+Enter, and Cmd+Enter, but none work. I’ve tried, No Line Ending, NL, CR, and, Both NL & CR, without success.
Hi Mr Bill! (oh NO!!!!)
Can you share a sample of your setup() and your loop() / subroutine where you make the Serial.available() call?
Also, do you have anything wired to the RX pin on your board?
Found the problem, thanks to a kick from you, OOHH NOOOO! I did not have anything connected to the RX pin, but I did have it redefined in my code. DOH! Thanks.
1 Like
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.