Search results

  1. S

    hammering on AsyncWebServer_Teensy41

    Is there any chance we might hear from the author of this code? I think he's around in these forums.
  2. S

    hammering on AsyncWebServer_Teensy41

    [ I am going to study your QNEthernet API closely, BTW ]
  3. S

    hammering on AsyncWebServer_Teensy41

    Then did you bang on either of those URLs with a browser? Did it generate failures as before? My problem isn't really about hitting the same address (IP/inline) from multiple sources, but rather it seems simultaneous transactions (that's my guess, something like overlapping requests) of any...
  4. S

    hammering on AsyncWebServer_Teensy41

    Sorry about the 'linline' typo. So it sounds like you reproduced it. I noticed the slower update rate just now, too.. This is a vigorous test to demonstrate a rare but troubling problem with my system. What do you think I should do? pivot to websockets?
  5. S

    hammering on AsyncWebServer_Teensy41

    Yes, I looked at that warning and the author says if your program works, then don't worry about the warning: https://forum.pjrc.com/index.php?threads/websockets_generic-library.61149/post-302109 That's a little odd, mine looked like this
  6. S

    hammering on AsyncWebServer_Teensy41

    Do you think I should go with a socket-based approach, if it comes down to it? I'm going to be using JSON for sure, but there's no real reason why I need to support a browser. It's just a convenient development tool.
  7. S

    hammering on AsyncWebServer_Teensy41

    Thanks Shawn and Defragster. OK, I owed this community better. I'm providing a usable sketch, straight from SendChunked.ino (pasted at bottom of this post). It provides two ways to access data: server.on("/", HTTP_GET, [](AsyncWebServerRequest * request) server.on("/inline"...
  8. S

    hammering on AsyncWebServer_Teensy41

    An example of the reading script, this one for powershell. I get the Continuation problem on an ubuntu machine as well. I'll open 3 tabs and set each version of the script to point to the / (root), the /data and the /firmware pages. Then I'll set up different Millisecond delays and start them...
  9. S

    hammering on AsyncWebServer_Teensy41

    A little more information [env:teensy41] platform = teensy board = teensy41 framework = arduino lib_deps = khoih-prog/AsyncWebServer_Teensy41 ssilverman/QNEthernet@>=0.17.0 bblanchon/ArduinoJson@^6.21.4
  10. S

    hammering on AsyncWebServer_Teensy41

    Hi folks! I'm using AsyncWebServer_Teensy41 to present a few different server pages, set up very much simplified in the code below (my pages are more dynamic, but this demonstrates a simple case.) I've got some scripts that are reading from these pages asynchronously. I find that they chug...
  11. S

    AsyncWebServer_Teensy41 mutex protection needed?

    This explains a lot. I did some coding experiments where I incremented a variable an even number of times in the main loop, then tried to protect it with various interrupt/noInterrupt calls, delays, yield(), and other interstitial function calls. Then I looked at my browser to see if I ever...
  12. S

    AsyncWebServer_Teensy41 mutex protection needed?

    ... and by "Do I need to protect it with a mutex" I mean protect my populating of the data array. I've looked over the documentation for AsyncWebServer_Teensy41 and it appears to be copy-paste from the original ESP32-based developer. It really doesn't go into this kind of detail there either...
  13. S

    AsyncWebServer_Teensy41 mutex protection needed?

    Hello all, I've got a project in progress and have been using the AsyncWebServer_Teensy41 with a fair amount of success. One thing has been worrying me, though. I have a process that is generating data on a timer, then when a web client causes a callback to the function I've registered with...
Back
Top