These are chat archives for esp8266/Arduino

12th
Sep 2017
Bryce Schober
@bryceschober
Sep 12 2017 17:22
@me-no-dev Is there some 25-millisecond period built into the ESP8266 network stack? If I try to transmit UDP broadcast packets from my ESP8266 AP at any rate higher than that, I start dropping a lot. The packet length and overall bandwidth doesn't seem to make much difference, just the period between packets.
Me No Dev
@me-no-dev
Sep 12 2017 17:24
I am not aware of any such limitations, though the ESP has more to send than your UDP packets
maybe you send at the same time as something else?
Bryce Schober
@bryceschober
Sep 12 2017 17:25
Right... though on Wireshark, I don't see a whole lot. I can share my sketch and wireshark dissector that runs the whole test and counts the statistics, if you'd like to repro yourself...
Me No Dev
@me-no-dev
Sep 12 2017 17:27
there are beacons and other packets that you would not normallyt see. Honestly nothing else makes sense to me. Have been abe to send packets faster
maybe not enough yield()?
Bryce Schober
@bryceschober
Sep 12 2017 17:29
is there no yielding outside of loop()? I'm not doing any delay loops in there, just early exits.
Me No Dev
@me-no-dev
Sep 12 2017 17:33
wait... I did not read everything... so you are running softap?
Bryce Schober
@bryceschober
Sep 12 2017 17:33
yes
Bryce Schober
@bryceschober
Sep 12 2017 17:43
So @me-no-dev , do I need to yield in my loop() instead of just an early exit?
Me No Dev
@me-no-dev
Sep 12 2017 17:44
no, it could be softap related
can you test the same thing on sta?
Bryce Schober
@bryceschober
Sep 12 2017 17:50
I suppose I could, but our application really wants to be softap, so I'm not sure the test would be very relevant...
Me No Dev
@me-no-dev
Sep 12 2017 17:52
the test would show if softap is the issue :)