Skip to content

Commit

Permalink
Merge pull request #163 from arduino-libraries/fix-AP_SimpleWebServer
Browse files Browse the repository at this point in the history
Bugfix: Short timeout allows SPI on RP2040 to be served in AP_SimpleWebServer
  • Loading branch information
aentinger authored Mar 26, 2021
2 parents f7039f2 + 3ca168c commit d0d58fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/AP_SimpleWebServer/AP_SimpleWebServer.ino
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ void loop() {
Serial.println("new client"); // print a message out the serial port
String currentLine = ""; // make a String to hold incoming data from the client
while (client.connected()) { // loop while the client's connected
delayMicroseconds(10); // This is required for the Arduino Nano RP2040 Connect - otherwise it will loop so fast that SPI will never be served.
if (client.available()) { // if there's bytes to read from the client,
char c = client.read(); // read a byte, then
Serial.write(c); // print it out the serial monitor
Expand Down

0 comments on commit d0d58fd

Please sign in to comment.