Replies: 1 comment
-
Dropping and recreating everything is definitely something that should work. Setting a new config should also work but you need to disconnect first and call connect afterwards. However, the networking stack needs a reset (if the stack can't figure that out on itself - I think embassy-net should be able to figure it out on itself) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm attempting to do a wifi scan (using
WifiController::scan_n_async
), and then establish a connection based on what I find. In order to do a scan, I need to start the wifi controller. The result of the scan is a newConfiguration
which would then be pass in viaset_configuration()
. What I can't seem to figure out (and I've spent a couple days searching for information) is whether it is legal to simply set a new configuration while the controller is started, or whether I have to shut down the controller (or perhaps even create a brand new controller instance) in order to set the new configuration.The broader question is: which controller methods are valid in particular states? The Rust docs don't say, and while the Espressif C docs talk about this a little bit, it's hard to map the C methods to the Rust methods.
Beta Was this translation helpful? Give feedback.
All reactions