Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ESP8266_Simple.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ unsigned int ESP8266_Simple::readIPD(

// The first time round, lineNumber will still be zero
if(lineNumber == -1) {
// First line of first packet should be status code (hopefully nobody out there has preceeding whitespace)
// First line of first packet should be status code (hopefully nobody out there has preceding whitespace)
if(parseHttpResponse) {
if(strcmp_P(responseBuffer, PSTR("HTTP/")) == 0) {
*parseHttpResponse = atoi(responseBuffer+9); // 9 == strlen("HTTP/1.1 ")
Expand Down Expand Up @@ -789,7 +789,7 @@ unsigned int ESP8266_Simple::readIPD(
}

// A "negative" bodyResponseOnlyFromLine means skip this many headers and then include the rest
// provided that headers are avalable (which will be the case only if httpHost is defined)
// provided that headers are available (which will be the case only if httpHost is defined)
// if we have not reached the minimum line yet, empty the buffer
else if( abs(bodyResponseOnlyFromLine) > lineNumber) {
/*
Expand Down Expand Up @@ -1044,7 +1044,7 @@ byte ESP8266_Simple::sendCommand(
if(strncmp_P(statusBuffer, PSTR("ready"), 5) == 0) return ESP8266_READY;
if(strncmp_P(statusBuffer, PSTR("busy"), 4) == 0) return ESP8266_BUSY;
if(strncmp_P(statusBuffer, PSTR("Unlink"), 6) == 0) return ESP8266_OK;
if(strncmp_P(statusBuffer, PSTR("Link is builded"), 15) == 0) return ESP8266_OK;
if(strncmp_P(statusBuffer, PSTR("Link is built"), 15) == 0) return ESP8266_OK;

// If we are using a response buffer, and we have reached the start line
// requested (defaults to line 1)
Expand Down
2 changes: 1 addition & 1 deletion ESP8266_Simple.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class ESP8266_Simple
byte startHttpServer(unsigned int port, unsigned long (* requestHandler)(char *buffer, int bufferLength), unsigned int maxBufferSize = 250);
byte stopHttpServer();

// Implements a naieve HTTP server. When a get request comes in, it it passed to
// Implements a naive HTTP server. When a get request comes in, it it passed to
// a callback function, this callback function should examine the contents of
// the buffer[0..requestLength-1]
// if can then write a response into the buffer[0..bufferLength-1]
Expand Down
2 changes: 1 addition & 1 deletion examples/HelloWorld/HelloWorld.ino
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void loop()
// Now let's interpret the response code
if(httpResponseCode == 200 || httpResponseCode == ESP8266_OK)
{
// Our request was successfull and the response can be found in the buffer
// Our request was successful and the response can be found in the buffer
Serial.println("OK");
Serial.println(buffer);
}
Expand Down