@@ -60,11 +60,11 @@ long lastReadingTime = 0;
60
60
void setup () {
61
61
// You can use Ethernet.init(pin) to configure the CS pin
62
62
// Ethernet.init(10); // Most Arduino shields
63
- // Ethernet.init(5); // MKR ETH shield
63
+ // Ethernet.init(5); // MKR ETH Shield
64
64
// Ethernet.init(0); // Teensy 2.0
65
65
// 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
68
68
69
69
// start the SPI library:
70
70
SPI.begin ();
@@ -92,7 +92,7 @@ void setup() {
92
92
// start listening for clients
93
93
server.begin ();
94
94
95
- // initalize the data ready and chip select pins:
95
+ // initialize the data ready and chip select pins:
96
96
pinMode (dataReadyPin, INPUT);
97
97
pinMode (chipSelectPin, OUTPUT);
98
98
@@ -104,7 +104,7 @@ void setup() {
104
104
// give the sensor and Ethernet shield time to set up:
105
105
delay (1000 );
106
106
107
- // Set the sensor to high resolution mode tp start readings:
107
+ // Set the sensor to high resolution mode to start readings:
108
108
writeRegister (0x03 , 0x0A );
109
109
110
110
}
@@ -131,7 +131,7 @@ void getData() {
131
131
// Read the temperature data
132
132
int tempData = readRegister (0x21 , 2 );
133
133
134
- // convert the temperature to celsius and display it:
134
+ // convert the temperature to Celsius and display it:
135
135
temperature = (float )tempData / 20.0 ;
136
136
137
137
// Read the pressure data highest 3 bits:
@@ -155,16 +155,16 @@ void listenForEthernetClients() {
155
155
EthernetClient client = server.available ();
156
156
if (client) {
157
157
Serial.println (" Got a client" );
158
- // an http request ends with a blank line
158
+ // an HTTP request ends with a blank line
159
159
bool currentLineIsBlank = true ;
160
160
while (client.connected ()) {
161
161
if (client.available ()) {
162
162
char c = client.read ();
163
163
// 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,
165
165
// so you can send a reply
166
166
if (c == ' \n ' && currentLineIsBlank) {
167
- // send a standard http response header
167
+ // send a standard HTTP response header
168
168
client.println (" HTTP/1.1 200 OK" );
169
169
client.println (" Content-Type: text/html" );
170
170
client.println ();
0 commit comments