Skip to content

Add xtask to implement http/mqtt/ota servers locally#95

Merged
SergioGasquez merged 5 commits intoesp-rs:feat/overhaulfrom
SergioGasquez:feat/xtask
Feb 24, 2026
Merged

Add xtask to implement http/mqtt/ota servers locally#95
SergioGasquez merged 5 commits intoesp-rs:feat/overhaulfrom
SergioGasquez:feat/xtask

Conversation

@SergioGasquez
Copy link
Copy Markdown
Member

❯ cargo xtask --help
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s
     Running `target/debug/xtask --help`
Project automation tasks

Usage: xtask <COMMAND>

Commands:
  mqtt-server  Starts a local MQTT v5 server and prints all received messages
  http-server  Starts a local HTTP server and prints incoming sensor payloads from `POST /sensor`
  ota-server   Starts a local OTA HTTP server and serves `GET /firmware.bin`
  help         Print this message or the help of the given subcommand(s)

Options:
  -h, --help  Print help

@SergioGasquez SergioGasquez linked an issue Feb 23, 2026 that may be closed by this pull request
// BROKER_HOST="<IP>" BROKER_PORT="1884" cargo r -r
// ipconfig getifaddr en0 or ip addr show eth0
// 3. Run the app
// HOST_IP="<IP>" cargo r -r
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we print the host IP from the xtask server? Just to save the user finding it themselves.

Copy link
Copy Markdown
Member

@jessebraham jessebraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SergioGasquez SergioGasquez merged commit 8251456 into esp-rs:feat/overhaul Feb 24, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement servers locally in xtask

3 participants