Yes, That returns the expected result of seeing twice. Type something in and hit enter and see it return back on next line.
And returning to your other code with serial1 and talking to HC-05 and this time also plugging in direct connection with USB…
void setup() {
Serial.begin(9600);
Serial1.begin(9600);
}
void loop() {
while(Serial.available()) // any data on USB Serial
Serial1.write(Serial.read()); // read it from USB Serial and pass it to Serial1 (HC-05)
while(Serial1.available()) // any data on Serial1 (HC-05)
Serial.write(Serial1.read()); // read it from Serial1 and pass it to USB Serial
}
I can see what I type after hitting enter on the USB serial port. I have three windows up COM4, COM5, and COM6…
No jibberish now. Lets see if this has the expected results you would be expecting…
COM4 (Incoming HC-05) “I can type and hit enter but does not show up anything on COM4, COM5, and COM6”
COM5 (Outgoing HC-05) “Reads what I type from COM6 after hitting enter but does not show return back up or as an echo on COM5 or COM4”
COM6 (USB PC to USB Photon) “Reads what I type from COM5 after hitting enter but does not show return back up or as an echo on COM4 or COM6”