Go Down

Topic: ESP-12e no response (Read 830 times) previous topic - next topic

shreyamantu@gmail.com

There is no response from esp12 after i put the Serial.begin in the setup . Before i add the Serial.begin i get response from the esp-12e.
I tried
Code: [Select]
#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11); // RX, TX

void setup() {
  // Open serial communications and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }

  // set the data rate for the SoftwareSerial port
  mySerial.begin(9600);
  mySerial.println("AT\r\n");
}
void loop() { // run over and over
  if (mySerial.available()) {
    Serial.write(mySerial.read());
  }
  if (Serial.available()) {
    mySerial.write(Serial.read());
  }
}

I have a separate power source for esp.

Go Up