micropython-wifimanager icon indicating copy to clipboard operation
micropython-wifimanager copied to clipboard

Feature Request: Provide a REST API to interact with config file

Open jonathanfoster opened this issue 3 years ago • 0 comments

It would be nice to have a REST API to interact with the config file that way developers could create a UI for users to bootstrap the device. Actually, a wrapper class that handles CRUD operations on the config file would support a REST API as well as a traditional web interface. Something like:

GET /wifi/known_networks
GET /wifi/access_point
wifi_config = WifiConfig()
wifi_config.known_networks.append({
    "ssid": "my_access_point",
    "password": "my_access_point_password",
    "enables_webrepl": False,
})
wifi_config.save()

I'm not sure if this project is still active. If so, I'd be more than willing to submit a PR for this feature. Just give me a 👍
from one of the maintainers and I'll make it happen.

jonathanfoster avatar May 31 '21 20:05 jonathanfoster