Description
Like #6473, but for Access Point: allow Wi-Fi AP SSID and password to be defined in settings.toml
(optionally: channel, authmode, and max_connections), and if present, start up a Wi-Fi AP automatically. If web workflow is enabled, allow web workflow to operate via the AP.
Some discussion of the motivations is here. Particularly useful when the device is away from its "home" network as specified in the settings.toml
file and a general-purpose computer with serial isn't readily available (especially with non-native-USB CircuitPython devices that have no USB MSC to allow copying a settings.toml
file).
Note that both Station and AP parameters could be in settings.toml
, so some convention is needed for which takes precedence for web workflow (both can be running simultaneously for any other reason). My thought would be AP takes precedence for web workflow, since that works whether the user is within range of their "home" wifi or not (see motivations above). Serial Terminal could presumably get mirrored to both Station and AP web workflows much like the mirroring to serial, web workflow, and BLE workflow. But File Browser could be much more challenging to mirror.
Addendum: I noticed in a brief test that if more than one web client connects to the Serial Terminal, only the most recent works. There is a note in the docs that "Only one WebSocket at a time is supported.". Multiple modes of Terminal also seem to slow things down. So it may not make sense to mirror Serial Terminal across Station web workflow and AP web workflow, and the precedence convention becomes more important.