PieterP:
Now, you're just sending 'AT\r\n' to the computer.
Connect your ESP to different pins.
Pins 0 and 1 are the serial connection to the computer, and they are already in use.
#include <SoftwareSerial.h>
const byte rxPin = 2; // Wire this to Tx Pin of ESP8266
const byte txPin = 3; // Wire this to Rx Pin of ESP8266
// We'll use a software serial interface to connect to ESP8266
SoftwareSerial ESP8266 (rxPin, txPin);
void setup() {
Serial.begin(9600);
ESP8266.begin(9600); // Change this to the baudrate used by ESP8266
delay(1000); // Let the module self-initialize
Serial.println("Sending an AT command...");
ESP8266.print("AT\r\n");
delay(300);
}
void loop() {
while (ESP8266.available()){
String inData = ESP8266.readStringUntil('\n');
Serial.println("Got reponse from ESP8266: " + inData);
}
}
still nothing ![]()