title: Serial Communication between two ESP32
body: <p>I have found examples of basic arduino to arduino serial communication but have been unable to get those working on ESP32 boards. I am trying to make the same thing work between two ESP32's The two are connected: </p>
  
  <pre><code>esp1   esp2
  gnd to gnd
  tx2 to rx2
  rx2 to tx2
  </code></pre>
  
  <p>Simple sketches:</p>
  
  <pre><code>//transmit sketch
  void setup() {
    Serial.begin(9600);
  }
  
  void loop() {
    Serial.println("test...");
    delay(1000);
  }
  
  //receive sketch
  void setup() {
    Serial.begin(9600);
  }
  
  void loop() {
    String received = "";
    while (Serial.available())
    {
      received = Serial.read();
      Serial.println(received);
    }
  }
  </code></pre>
  
  <p>What else is required to make this work?</p>