{"id":16096034,"url":"https://github.com/frenchbread/rust-mqtt-client","last_synced_at":"2025-04-05T20:27:31.030Z","repository":{"id":153546625,"uuid":"533773759","full_name":"frenchbread/rust-mqtt-client","owner":"frenchbread","description":"Sample client application for publishing and subscribing to messages served by EMQX broker.","archived":false,"fork":false,"pushed_at":"2022-09-07T13:40:49.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-11T19:36:33.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frenchbread.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-09-07T13:18:14.000Z","updated_at":"2022-09-07T13:40:53.000Z","dependencies_parsed_at":"2023-06-27T06:33:38.428Z","dependency_job_id":null,"html_url":"https://github.com/frenchbread/rust-mqtt-client","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"11b483ce7c16ed281388cc1ebd73bd490f853b5c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Frust-mqtt-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Frust-mqtt-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Frust-mqtt-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frenchbread%2Frust-mqtt-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frenchbread","download_url":"https://codeload.github.com/frenchbread/rust-mqtt-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247396273,"owners_count":20932294,"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":[],"created_at":"2024-10-09T17:10:15.059Z","updated_at":"2025-04-05T20:27:31.006Z","avatar_url":"https://github.com/frenchbread.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"MQTT Rust app\n====\n\n\u003e Client application for publishing and subscribing to messages served by EMQX broker.\n\n[Create](https://cloud-intl.emqx.com/console/) own cloud instance of EMQX Broker for testing or [download](https://www.emqx.io/downloads) and run locally.\n\n### Setup\n\nRename `.env.template to .env` provide env variables.\n\n- **BROKER_HOST** - EMQX broker host\n- **CLIENT_NAME** - client name\n- **PUB_TOPIC** - topic to publish to e.g. testtopic/1\n- **SUB_TOPICS** - list of topics to subscribe to (separated by comma)\n- **QOSS** - QOS value(s) for topics subscribtions (separated by comma)\n- **USERNAME** - emqx broker user username\n- **PASSWORD** - emqx broker user password\n\n### Build\n\n```\n❯ cargo build\n```\n\n### Subscribe\n\nRun this command to subscribe to topic(s):\n```\n❯ ./target/debug/sub\n```\n\n### Publish\n\nAnd this to publish 5 \"hello world\" messages:\n\n```\n❯ ./target/debug/publish\n```\n\n### todos\n\n- [x] move sensitive variables to env\n- [x] decouple code for connection to separate module and reuse for both pub\u0026sub\n- [ ] integrate with tauri application\n\n### LICENSE\n\n[MIT](https://github.com/frenchbread/rust-mqtt-client/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrenchbread%2Frust-mqtt-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrenchbread%2Frust-mqtt-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrenchbread%2Frust-mqtt-client/lists"}