{"id":25875607,"url":"https://github.com/tuemb/mqtt-esp-rs-example","last_synced_at":"2026-04-14T07:32:18.393Z","repository":{"id":277133595,"uuid":"931040328","full_name":"TuEmb/mqtt-esp-rs-example","owner":"TuEmb","description":"the example for MQTT on esp and Rust","archived":false,"fork":false,"pushed_at":"2025-03-01T02:34:01.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T03:23:09.256Z","etag":null,"topics":["esp32","mqtt-client","tls-certificate"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TuEmb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-11T16:14:45.000Z","updated_at":"2025-03-01T02:34:04.000Z","dependencies_parsed_at":"2025-02-12T10:43:29.173Z","dependency_job_id":"06cca540-f56d-4567-aa82-6ac95c4eaed1","html_url":"https://github.com/TuEmb/mqtt-esp-rs-example","commit_stats":null,"previous_names":["tuemb/mqtt-esp-rs-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuEmb%2Fmqtt-esp-rs-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuEmb%2Fmqtt-esp-rs-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuEmb%2Fmqtt-esp-rs-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TuEmb%2Fmqtt-esp-rs-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TuEmb","download_url":"https://codeload.github.com/TuEmb/mqtt-esp-rs-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241488293,"owners_count":19970849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["esp32","mqtt-client","tls-certificate"],"created_at":"2025-03-02T10:18:38.030Z","updated_at":"2026-04-14T07:32:18.361Z","avatar_url":"https://github.com/TuEmb.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MQTT ESP Rust Example\n\n- This repository provides an example of using **MQTT** on **ESP32** with **Rust**, including **TLS support** for secure communication.\n- This repo only supports **MQTT3** now. I'm planning for **MQTT5** in the future.\n\n## Features\n- Connect ESP32 to an MQTT broker using **Rust**.\n- Secure communication with **TLS support**.\n- Lightweight and efficient implementation.\n\n## Requirements\n- **Rust toolchain** (nightly recommended)\n- **ESP32 toolchain** (esp-rs)\n- **Cargo** and **cargo-espflash**\n- An MQTT broker (e.g., [Mosquitto](https://mosquitto.org/), [EMQX](https://www.emqx.io/), or [HiveMQ](https://www.hivemq.com/))\n\n## Installation \u0026 Setup\n### 1. Install Rust for ESP32\nFollow the official [esp-rs setup guide](https://esp-rs.github.io/book/installation/index.html) to install the necessary tools.\n\n### 2. Clone the Repository\n```sh\ngit clone https://github.com/TuEmb/mqtt-esp-rs-example.git\ncd mqtt-esp-rs-example\n```\n### 3. Setup MQTT client\n- put your certs at `certs`\n- Update your MQTT info at `src/tasks/mod.rs`\n### 4. Build \u0026 Flash\nRun the following command to build and flash the firmware:\n```sh\nSSID=\"your-wifi\" PASSWORD=\"your-wifi-password\" cargo r --release\n```\n\n## Usage\nOnce flashed, the ESP32 will:\n1. Connect to the configured Wi-Fi network.\n2. Establish a **TLS-secured** MQTT connection.\n3. Publish to a topic.\n\n## Roadmap\n- [ ] Add support for all ESP variants (esp32c6 for now)\n\n## License\nThis project is licensed under the **MIT License**.\n\n## Contributions\nContributions are welcome! Feel free to open an issue or submit a pull request.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuemb%2Fmqtt-esp-rs-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuemb%2Fmqtt-esp-rs-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuemb%2Fmqtt-esp-rs-example/lists"}