Re: Unstable 802.1x
Posted:
Fri Jul 28, 2017 10:21 pm
by antinym
The yield at the end of the main loop did not help any. I believe that yield is called at the end of the main loop.
I'm not sure that the "(effective) loop" you describe is anything other than normal behavior.
hmm..
Re: Unstable 802.1x
Posted:
Fri Jul 28, 2017 10:22 pm
by antinym
I've swapped out Wemos Boards same issue. I even tried a Wemos Pro.. same issue.
Re: Unstable 802.1x
Posted:
Sat Jul 29, 2017 7:15 pm
by QuickFix
Another thing I thought about today: where are you handling any disconnects (after a prior connection)?
At some point wpastate becomes 3, but it never gets reset to 0 on a disconnect (or I must be missing something).
Re: Unstable 802.1x
Posted:
Sat Jul 29, 2017 7:40 pm
by antinym
I haven't gotten that far. I've adapted this code from another source online that puts everything in the setup(). But, I don't like waiting for for the Wifi to get setup before my MCU does stuff. If it were all in the setup() there'= would be no handling of disconnects either.
I could easily write something for wpastate=3 checking if WL_Connected something something something, but first thing is first, and that's just getting online consistently.