File tree Expand file tree Collapse file tree 4 files changed +1
-5
lines changed
arduino-modbus-rtu-tcp-gateway Expand file tree Collapse file tree 4 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,6 @@ void recvTcp()
133
133
client.write (lowByte (crc)); // send CRC, low byte first
134
134
client.write (highByte (crc));
135
135
}
136
- client.stop ();
137
136
ethTxCount += 5 ;
138
137
if (!localConfig.enableRtuOverTcp ) ethTxCount += 4 ;
139
138
}
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ void recvSerial()
112
112
client.write (MBAP, 6 );
113
113
client.write (serialIn, rxNdx - 2 ); // send without CRC
114
114
}
115
- client.stop ();
116
115
ethTxCount += rxNdx;
117
116
if (!localConfig.enableRtuOverTcp ) ethTxCount += 4 ;
118
117
}
@@ -161,7 +160,6 @@ void recvSerial()
161
160
client.write (lowByte (crc)); // send CRC, low byte first
162
161
client.write (highByte (crc));
163
162
}
164
- client.stop ();
165
163
ethTxCount += 5 ;
166
164
if (!localConfig.enableRtuOverTcp ) ethTxCount += 4 ;
167
165
}
Original file line number Diff line number Diff line change @@ -144,7 +144,6 @@ void recvWeb()
144
144
send204 (client); // if you don't have a favicon, send 204
145
145
else // if the page is unknown, HTTP response code 404
146
146
send404 (client);
147
- client.stop ();
148
147
action = NONE;
149
148
dbg (F (" [web] Stop client " ));
150
149
}
Original file line number Diff line number Diff line change @@ -564,7 +564,7 @@ void send404(EthernetClient &client)
564
564
client.println (F (" HTTP/1.0 404 Not Found" ));
565
565
client.println (F (" Content-Type: text/plain" )); // simple plain text without html tags
566
566
client.println ();
567
- client.println (F (" File Fot Found" ));
567
+ client.println (F (" File Not Found" ));
568
568
}
569
569
570
570
You can’t perform that action at this time.
0 commit comments