Skip to content
This repository was archived by the owner on Jul 31, 2024. It is now read-only.
This repository was archived by the owner on Jul 31, 2024. It is now read-only.

Create example for browser-based device setup #70

@beriberikix

Description

@beriberikix

@keenanjohnson asked in Discord for an example showing how to setup/deploy a device in the field via the web browser. Some of that discussion (Keenan - please add any more details!):

Given that we're open source and sort of limited in developer resources, something that we can develop once for all platforms ( like a UI in the web) would be the most ideal that allows our users to connect their devices to their home wifi!
So when you get your device you got to sensor.local or something similar to connect it to your home wifi etc. That works well for our full linux devices today and not sure if it's technically feasible for an esp32
...
The device broadcasts an AP, the user connects to that, enters the credentials and then the device switches to that AP.
...
I've seen other ESP devices do something similar, like this one: https://www.bhencke.com/pixelblazegettingstarted, so it seems technically feasible.

Basically create a sample that serves a web page for entering network credentials, similar to our mobile demo (which does more than wi-fi credentials.)

A non-Zephyr library I've used is called esp32-wifi-manager We could do something similar with civetweb as the webserver, dns-sd for .local discovery & settings to store credentials.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions