Skip to main content
added 82 characters in body
Source Link
Code Gorilla
  • 5.7k
  • 1
  • 17
  • 31

I am trying to build a home automation system and i am unable to get data from a website using the arduino sketch, however i am able to get data from the website when i enter the AT commands into the serial monitor.Below is my sketch:

#include <SoftwareSerial.h>

SoftwareSerial esp8266(4,5);

void setup(){

Serial.begin(9600);

esp8266.begin(115200);

esp8266.println("AT+CIPMUX=1\r\n");

delay(2000);

esp8266.println("AT+CIPSTART=0,"TCP","www.homeautomationserver.com",80 \r\n");

delay(2000);

esp8266.println("AT+CIPSEND=0,75");

esp8266.println("GET /f/pw9e1acqx7yb0gl.txt HTTP/1.1\r\n");

esp8266.println("Host:www.homeautomationserver.com\r\n\r\n");

void loop(){

if (esp8266.available()){ Serial.write(esp8266.read()); } if (Serial.available()){ esp8266.write(Serial.read());}

#include <SoftwareSerial.h>

SoftwareSerial esp8266(4,5);

void setup(){
  Serial.begin(9600);
  esp8266.begin(115200);
  esp8266.println("AT+CIPMUX=1\r\n");
  delay(2000);
  esp8266.println("AT+CIPSTART=0,\"TCP\",\"www.homeautomationserver.com\",80 \r\n");
  delay(2000);
  esp8266.println("AT+CIPSEND=0,75");
  esp8266.println("GET /f/pw9e1acqx7yb0gl.txt HTTP/1.1\r\n");
  esp8266.println("Host:www.homeautomationserver.com\r\n\r\n");
}

void loop(){

  if (esp8266.available()){
    Serial.write(esp8266.read());
  }
  if (Serial.available()){
    esp8266.write(Serial.read());
  }
}

I get a 501 not Implemented error from the server.

Please Help.

Thanks

I am trying to build a home automation system and i am unable to get data from a website using the arduino sketch, however i am able to get data from the website when i enter the AT commands into the serial monitor.Below is my sketch:

#include <SoftwareSerial.h>

SoftwareSerial esp8266(4,5);

void setup(){

Serial.begin(9600);

esp8266.begin(115200);

esp8266.println("AT+CIPMUX=1\r\n");

delay(2000);

esp8266.println("AT+CIPSTART=0,"TCP","www.homeautomationserver.com",80 \r\n");

delay(2000);

esp8266.println("AT+CIPSEND=0,75");

esp8266.println("GET /f/pw9e1acqx7yb0gl.txt HTTP/1.1\r\n");

esp8266.println("Host:www.homeautomationserver.com\r\n\r\n");

void loop(){

if (esp8266.available()){ Serial.write(esp8266.read()); } if (Serial.available()){ esp8266.write(Serial.read());}

}

I get a 501 not Implemented error from the server.

Please Help.

Thanks

I am trying to build a home automation system and i am unable to get data from a website using the arduino sketch, however i am able to get data from the website when i enter the AT commands into the serial monitor.Below is my sketch:

#include <SoftwareSerial.h>

SoftwareSerial esp8266(4,5);

void setup(){
  Serial.begin(9600);
  esp8266.begin(115200);
  esp8266.println("AT+CIPMUX=1\r\n");
  delay(2000);
  esp8266.println("AT+CIPSTART=0,\"TCP\",\"www.homeautomationserver.com\",80 \r\n");
  delay(2000);
  esp8266.println("AT+CIPSEND=0,75");
  esp8266.println("GET /f/pw9e1acqx7yb0gl.txt HTTP/1.1\r\n");
  esp8266.println("Host:www.homeautomationserver.com\r\n\r\n");
}

void loop(){

  if (esp8266.available()){
    Serial.write(esp8266.read());
  }
  if (Serial.available()){
    esp8266.write(Serial.read());
  }
}

I get a 501 not Implemented error from the server.

Please Help.

Thanks

Source Link

ESP8266 GET REPLY ERROR 501

I am trying to build a home automation system and i am unable to get data from a website using the arduino sketch, however i am able to get data from the website when i enter the AT commands into the serial monitor.Below is my sketch:

#include <SoftwareSerial.h>

SoftwareSerial esp8266(4,5);

void setup(){

Serial.begin(9600);

esp8266.begin(115200);

esp8266.println("AT+CIPMUX=1\r\n");

delay(2000);

esp8266.println("AT+CIPSTART=0,"TCP","www.homeautomationserver.com",80 \r\n");

delay(2000);

esp8266.println("AT+CIPSEND=0,75");

esp8266.println("GET /f/pw9e1acqx7yb0gl.txt HTTP/1.1\r\n");

esp8266.println("Host:www.homeautomationserver.com\r\n\r\n");

void loop(){

if (esp8266.available()){ Serial.write(esp8266.read()); } if (Serial.available()){ esp8266.write(Serial.read());}

}

I get a 501 not Implemented error from the server.

Please Help.

Thanks