ESP8266-01 not responding !
Posted: Mon Apr 24, 2017 3:32 am
Dears ,
I am totally new to ARDUINO , and just created few simple projects leds & temperatures sensors staff
Now I need to create my first IoT project which need to connect to Internet and post simple data e.g. temperatures ...
So I get ESP8266-01 and read about it , and successfully Implement the empty project and starting AT commands
Now I want to create my own program which using ESP8266-01 , below code for connect to ESP8266-01 and send AT command ::
but no luck ! it is always printing 0 as esp8266.available() which mean no data available as response to AT command !!!
please your support to help me to communicate with ESP8266 and use it to connect to my wifi AP .
Regards
I am totally new to ARDUINO , and just created few simple projects leds & temperatures sensors staff
Now I need to create my first IoT project which need to connect to Internet and post simple data e.g. temperatures ...
So I get ESP8266-01 and read about it , and successfully Implement the empty project and starting AT commands
Now I want to create my own program which using ESP8266-01 , below code for connect to ESP8266-01 and send AT command ::
Code: Select all
#include <SoftwareSerial.h>
SoftwareSerial esp8266(0,1); // RX, TX
void setup() {
// put your setup code here, to run once:
esp8266.begin(9600);
Serial.begin(115200);
}
void loop() {
esp8266.write("AT\r\n");
String buffer;
Serial.print("SENDING AT...");
Serial.println("******************** Buffer ****************");
Serial.println(esp8266.available());
Serial.println("**************************** END *************");
delay(3000);
}
but no luck ! it is always printing 0 as esp8266.available() which mean no data available as response to AT command !!!
please your support to help me to communicate with ESP8266 and use it to connect to my wifi AP .
Regards