Hello
i wanted to test if my ESP8266 WIFI module is working correctly. Because i dont have any usb-uart module, i used my leonardo to read what's receiving and send over serial monitor. Code:
void setup() {
聽 // put your setup code here, to run once:
聽 Serial.begin(115200);
聽 Serial1.begin(9600);
}
void loop() {
聽 // put your main code here, to run repeatedly:
聽 while(Serial.available()) Serial1.write(Serial.read());
聽 while(Serial1.available()) Serial.write(Serial1.read());
}
the Module is connected to the uart pins on the leonardo, with a voltage divider on rx. when i remove the power and apply it again, i get the normal boot text.
Well now it outputs normal characters. but somehow it now doesnt reports the last command i send. after sending "AT" nothing happens, there is no "AT" in the Serial monitor.
OK went over to a friend and lend his uart module. when typing at it works. So it can only be a fault of my wiring, of the code or, lets hope not because its new, of my arduino
The y with the dots on top has extended ASCII code 0xFF (255 in decimal) and indicates a value of -1 being read. That is either caused by a 'real' end of file condition or bad wiring.