Skip to content

Commit 909a45a

Browse files
marcnausebessman
authored andcommitted
minimize timeouts
Set timeouts to 0 in order to increase throughput.
1 parent 8792daf commit 909a45a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ESP01Firmware/ESP01Firmware.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ WiFiServer server(80);
88

99
void setup() {
1010
Serial.begin(1000000);
11+
Serial.setTimeout(0);
1112

1213
WiFi.setPhyMode(WIFI_PHY_MODE_11N);
1314

@@ -20,6 +21,7 @@ void setup() {
2021

2122
void loop() {
2223
WiFiClient client = server.available();
24+
client.setTimeout(0);
2325

2426
if (client) {
2527
while (client.connected()) {

0 commit comments

Comments
 (0)