EmotiBit / EmotiBit_FeatherWing

Firmware to run Emotibit with Adafruit feather M0 WiFi and Feather ESP32
MIT License
19 stars 9 forks source link

Added fix for long wait between connections on Adafruit feather m0 #266

Closed nitin710 closed 1 year ago

nitin710 commented 1 year ago

Description

Fixes a bug where network switching on feather M0 would take attemptDelay (set in code) seconds. This artifact was introduced when changes were made to support enterprise wifi on ESP32.

This bug caused the Feather M0 to wait for 20 secs before switching networks (even if the network it was trying to connect to was not available). This patch fixes that issue and now, if a network is not available (Feather M0 fails to connect to it), it moves on to the next network.

Requirements

Issues Referenced

Documentation update

Testing

The following shows the setup log indicating time taken between trying separate networks.

Steps to test

Checklist to allow merge

Screenshots:

nitin710 commented 1 year ago

Review 01

Are there test results affirming that when the network is available it will still connect on both MCUs?

Yes, that has been tested. I will add it to the results above and ping you.

Did you intend to include bin files?

Ah, missed the upload. Will fix that.

nitin710 commented 1 year ago

@produceconsumerobot updated PR with test results for "successful connect". also linked bin files.

produceconsumerobot commented 1 year ago

@nitin710 great! Test results look good to me. Let's add these tests to our FW testing protocol/records. Perhaps we can even add a new column for the "modules" (or files) these tests touch so that we can be sure to run these tests at appropriate times in the future. I will try to test this out tomorrow on univ networks, but I'd say go ahead and merge if you're ready.

nitin710 commented 1 year ago

Added the tests to our protocols. Merging to master.