I would like to setup my raspberry pi to broadcast it's own wifi signal so that it can serve a webpage where users can input their wifi SSID and password, then it will disconnect from broadcasting, and connect to this network that was provided by the user.
So I have figured out how to do this by following this turorial(https://learn.sparkfun.com/tutorials/se ... -point/all) and modifying the 5 or 6 files required to switch the raspi to an access point, then serve the webpage, then add these credentials to the config file, but my question is: What is the easiest way to switch back and forth between the two modes (broadcasting and consuming?)
My thought at this point is to just create a python program that when a button is pushed it just overwrites the files back to the stock configuration and vice versa when I want it to broadcast. Is this a decent strategy? Thanks for any input!