Skip to content

Separate Web Workflow and Auto Connect #7598

@Neradoc

Description

@Neradoc

Web workflow requires auto-connect, using CIRCUITPY_WIFI_SSID and CIRCUITPY_WIFI_PASSWORD. These also automatically cause the webworkflow to start, web server on port 80, mdns and all. If CIRCUITPY_WEB_API_PASSWORD is not set, the home page shows up and cp/version.json, but the file browser and REPL return an empty page.

Auto-connect is useful, for development in particular, by not having to wait for reconnect on auto-reload (even though the user code should probably manage disconnects and reconnect attempts). But it would make sense for it to be disabled when CIRCUITPY_WEB_API_PASSWORD is not set. That way it doesn't take up a socket, port, and doesn't "leak" a mdns unintentionally.

We could also have a separate key to disable the web workflow instead, but it seems to me that people who only intend to use auto connect don't expect the web workflow to be running (despite the documentation mentioning it).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions