ESP8266 Developer Zone The Official ESP8266 Forum 2021-10-05T15:15:22+08:00 https://bbs.espressif.com:443/feed.php?f=65&t=75238 2021-10-05T15:15:22+08:00 2021-10-05T15:15:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75238&p=100261#p100261 <![CDATA[UART receiving problem]]>

Code:

Serial.println("UDP OK");

Now I want to receive a char from a terminal

Code:

void UART_Get()
{
     char chr;
    if (Serial.available() > 0)
    {
        chr = Serial.read();

        //for debug
        Serial.print(chr);
    }
}

and I put it in a loop

Code:

void loop()
{
     UART_Get();
}

But I get nothing.
I test the RX pin with a scope and I see incoming signals on the pin.
What can be wrong?

Statistics: Posted by jenya7 — Tue Oct 05, 2021 3:15 pm


]]>