diff --git a/ESP8266_Simple.cpp b/ESP8266_Simple.cpp index 76f5af8..6e03bca 100644 --- a/ESP8266_Simple.cpp +++ b/ESP8266_Simple.cpp @@ -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 ") @@ -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) { /* @@ -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) diff --git a/ESP8266_Simple.h b/ESP8266_Simple.h index 409896a..5d34a68 100644 --- a/ESP8266_Simple.h +++ b/ESP8266_Simple.h @@ -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] diff --git a/examples/HelloWorld/HelloWorld.ino b/examples/HelloWorld/HelloWorld.ino index 7ee4f0a..ba894b2 100644 --- a/examples/HelloWorld/HelloWorld.ino +++ b/examples/HelloWorld/HelloWorld.ino @@ -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); }