You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it can take a little while to connect to a wifi network. This is especially true for enterprise wifi networks. Of course this is just on the order of milliseconds to seconds, but even that amount of time could be critical depending on the user application.
For example, let's assume I call WiFi.beginEnterprise, and it takes 2 seconds to complete. It's possible that my code could have been doing something else for those 2 seconds while the separate NINA module was doing its work, and then I could come back 2 seconds later to see if the connection attempt was succcessful.
So, it would be useful to have the ability to asynchronously connect to a wifi network, rather than blocking on the begin and beginEnterprise function calls.
I imagine there could be a few new methods that would look something like this:
Sometimes it can take a little while to connect to a wifi network. This is especially true for enterprise wifi networks. Of course this is just on the order of milliseconds to seconds, but even that amount of time could be critical depending on the user application.
For example, let's assume I call
WiFi.beginEnterprise
, and it takes 2 seconds to complete. It's possible that my code could have been doing something else for those 2 seconds while the separate NINA module was doing its work, and then I could come back 2 seconds later to see if the connection attempt was succcessful.So, it would be useful to have the ability to asynchronously connect to a wifi network, rather than blocking on the
begin
andbeginEnterprise
function calls.I imagine there could be a few new methods that would look something like this:
It would also probably be necessary to define a new item in the
wl_status_t
enumeration calledWL_CONNECTING
.Then, maybe the
beginEnterpriseAsync
andgetAsyncConnectionStatus
functions could look something like this:Thoughts?
The text was updated successfully, but these errors were encountered: