I've spent all day trying to monitor serial console output of a router. I'm using an "ebay" MAX3232 RS232 to TTL converter connecting only GND, TX and RX to the Electron. Trying to simply monitor the console output during bootup - all I get is gibberish.
Even connected to computer's COM1 port and was unable to echo back and forth. All I get is 0 or weird symbols. (this was tried with more code than below)
Here's my most basic code. I'm about ready to give up. Any ideas?
#include "Particle.h"
void setup() {
Serial.begin(9600);
Serial1.begin(9600); // tried with 2400/even 1200 really should be 9600
Serial.println("Starting up Serial");
Serial1.println("Starting up Serial1");
}
void loop() {
while(Serial1.available()>0)
{
Serial.write(Serial1.read());
}
delay(50);
}