Is there a way to always save credentials ? #385
Replies: 5 comments 4 replies
-
@dumarjo What is the difference between AC_SAVECREDENTIAL_ALWAYS and using AutoConnectCredential API?
If it indicates what is included in the AutoConnectCredential data structure, it is also possible to pre-store WiFi configuration data by using the AutoConnectCredential API with the sketch. Or is your intended use case limited to applying static IP addresses? |
Beta Was this translation helpful? Give feedback.
-
@dumarjo It became clear. Thank you. Are there any additional restrictions in determining the specifications? In my experience, this kind of functionality can cause inconsistencies with other specifications... Is there a possibility of a spec conflict between AC_SAVECREDENTIAL_ALWAYS and AutoConnectConfig::autoReconnect via the background? When AC_SAVECREDENTIAL_ALWAYS is implemented, it should be possible to set a new AP while executing the loop() with the autoReconnect enabled. Is that okay? |
Beta Was this translation helpful? Give feedback.
-
@dumarjo We have one problem in implementing this support. To avoid this inconvenience, you need to change the specifications of
I think option # 1 is not desirable. In an environment where different APs with the same SSID exist, it is not always possible to connect to the same AP as last time. It should be the user's choice. Option # 2 interprets the stored credentials as pre-registered if the BBSSID is NULL and uses the SSID for AP matching even if |
Beta Was this translation helpful? Give feedback.
-
@dumarjo Thank you for your suggestion. In the simplest sketch sequence case:
So far that's what we expected, aimed. From here to follow, it is the behavior that doesn't feel right to me.
This behavior is correct under the current AutoConnect specifications. However, the user only registered a new credential on the assumption that he could not connect. Will they even allow the current WiFi connection to be abandoned? Having said that, we have the option to avoid this inconvenience. It is autoReconnect. If autoReconnect is enabled, it will even connect to the unconnected SSID you have just registered. Can you accept this specification? Is it the same for other users? |
Beta Was this translation helpful? Give feedback.
-
This feature has been supported in v1.3.0. |
Beta Was this translation helpful? Give feedback.
-
Hi,
In some circumtance, the configuration of the WIFI can be done without WIFI access. So in this case, I would like to save the credentials event if no connexion happen. Is it possible to achieve this with AutoConnect ?
From the documentation https://hieromon.github.io/AutoConnect/apiconfig.html#autosave, It's look like a new enum item can be added , like AC_SAVECREDENTIAL_ALWAYS ?
What do you thing about this ?
Beta Was this translation helpful? Give feedback.
All reactions