@@ -60,11 +60,11 @@ long lastReadingTime = 0;
6060void setup () {
6161 // You can use Ethernet.init(pin) to configure the CS pin
6262 // Ethernet.init(10); // Most Arduino shields
63- // Ethernet.init(5); // MKR ETH shield
63+ // Ethernet.init(5); // MKR ETH Shield
6464 // Ethernet.init(0); // Teensy 2.0
6565 // Ethernet.init(20); // Teensy++ 2.0
66- // Ethernet.init(15); // ESP8266 with Adafruit Featherwing Ethernet
67- // Ethernet.init(33); // ESP32 with Adafruit Featherwing Ethernet
66+ // Ethernet.init(15); // ESP8266 with Adafruit FeatherWing Ethernet
67+ // Ethernet.init(33); // ESP32 with Adafruit FeatherWing Ethernet
6868
6969 // start the SPI library:
7070 SPI.begin ();
@@ -92,7 +92,7 @@ void setup() {
9292 // start listening for clients
9393 server.begin ();
9494
95- // initalize the data ready and chip select pins:
95+ // initialize the data ready and chip select pins:
9696 pinMode (dataReadyPin, INPUT);
9797 pinMode (chipSelectPin, OUTPUT);
9898
@@ -104,7 +104,7 @@ void setup() {
104104 // give the sensor and Ethernet shield time to set up:
105105 delay (1000 );
106106
107- // Set the sensor to high resolution mode tp start readings:
107+ // Set the sensor to high resolution mode to start readings:
108108 writeRegister (0x03 , 0x0A );
109109
110110}
@@ -131,7 +131,7 @@ void getData() {
131131 // Read the temperature data
132132 int tempData = readRegister (0x21 , 2 );
133133
134- // convert the temperature to celsius and display it:
134+ // convert the temperature to Celsius and display it:
135135 temperature = (float )tempData / 20.0 ;
136136
137137 // Read the pressure data highest 3 bits:
@@ -155,16 +155,16 @@ void listenForEthernetClients() {
155155 EthernetClient client = server.available ();
156156 if (client) {
157157 Serial.println (" Got a client" );
158- // an http request ends with a blank line
158+ // an HTTP request ends with a blank line
159159 bool currentLineIsBlank = true ;
160160 while (client.connected ()) {
161161 if (client.available ()) {
162162 char c = client.read ();
163163 // if you've gotten to the end of the line (received a newline
164- // character) and the line is blank, the http request has ended,
164+ // character) and the line is blank, the HTTP request has ended,
165165 // so you can send a reply
166166 if (c == ' \n ' && currentLineIsBlank) {
167- // send a standard http response header
167+ // send a standard HTTP response header
168168 client.println (" HTTP/1.1 200 OK" );
169169 client.println (" Content-Type: text/html" );
170170 client.println ();
0 commit comments