{"id":25383042,"url":"https://github.com/mislam/qtpy-esp32s3-mqtt","last_synced_at":"2025-07-16T08:33:09.798Z","repository":{"id":200068409,"uuid":"704523068","full_name":"mislam/qtpy-esp32s3-mqtt","owner":"mislam","description":"MQTT client for Adafruit QT Py ESP32-S3","archived":false,"fork":false,"pushed_at":"2023-10-17T15:29:08.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T14:15:58.224Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/mislam.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":"2023-10-13T12:46:53.000Z","updated_at":"2023-10-14T22:23:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6a3a490-204f-4605-b1eb-640567926f9e","html_url":"https://github.com/mislam/qtpy-esp32s3-mqtt","commit_stats":null,"previous_names":["mislam/qtpy-esp32s3-mqtt-client"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mislam/qtpy-esp32s3-mqtt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislam%2Fqtpy-esp32s3-mqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislam%2Fqtpy-esp32s3-mqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislam%2Fqtpy-esp32s3-mqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislam%2Fqtpy-esp32s3-mqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mislam","download_url":"https://codeload.github.com/mislam/qtpy-esp32s3-mqtt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mislam%2Fqtpy-esp32s3-mqtt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265497456,"owners_count":23776990,"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":"2025-02-15T07:53:17.338Z","updated_at":"2025-07-16T08:33:09.775Z","avatar_url":"https://github.com/mislam.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MQTT Client for Adafruit QT Py ESP32-S3\n\nThis repository demonstrates the implementation of an MQTT client on the Adafruit QT Py ESP32-S3 board using CircuitPython. The project showcases how to connect to Wi-Fi, establish a connection to an MQTT broker (specifically Mosquitto running on a Raspberry Pi), subscribe to an MQTT topic, and process incoming messages.\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://fosskey.com\"\u003e\n    \u003cimg alt=\"Fosskey\" src=\"https://github.com/mislam/qtpy-esp32s3-mqtt-client/assets/508043/91db3172-4666-44bf-8af8-faf52b40ada8\" width=\"830\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Overview\n\n- **Hardware:** [Adafruit QT Py ESP32-S3](https://learn.adafruit.com/adafruit-qt-py-esp32-s3) \\w 4MB Flash and 2MB PSRAM.\n- **Platform:** [CircuitPython 8.2.6](https://learn.adafruit.com/adafruit-qt-py-esp32-s3/circuitpython-2)\n- **Library:** [Adafruit CircuitPython MiniMQTT v7.4.2](https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT)\n\n## Features\n\n- **Wi-Fi Connectivity:** The project allows the ESP32-S3 to connect to a Wi-Fi network using credentials from a `settings.toml` file. It handles reconnections in case of signal loss.\n\n- **MQTT Communication:** It establishes a reliable connection to an MQTT broker, utilizing configuration from the `settings.toml` file. It also includes robust mechanisms for automatically re-establishing communication in case of interruptions or losses to the broker.\n\n- **Subscribing to MQTT:** The client subscribes to an MQTT topic. When a message is received on that topic, it is printed to the console.\n\n## Getting Started\n\nTo run this project, follow these steps:\n\n1. **Setup CircuitPython:** Ensure that CircuitPython is installed on your Adafruit QT Py ESP32-S3 board.\n\n2. **Configuration:** Modify the `settings.toml` file with your Wi-Fi credentials and MQTT broker details.\n\n3. **Upload Code:** Upload the project code to your board. You can use a tool like [CircuitPython Code Editor](https://code.circuitpython.org/) to transfer files to the board over WiFi.\n\n4. **Execute:** Run the code on your board. It will establish connections to Wi-Fi and MQTT and begin handling MQTT messages.\n\n## Error Handling\n\nThe project includes error-handling logic to address situations where the Wi-Fi signal may be lost or the connection to the MQTT broker is disconnected. It attempts to handle these scenarios gracefully.\n\n## Contributing\n\nContributions to this project are welcome. If you would like to enhance or extend the functionality, please submit issues or pull requests.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmislam%2Fqtpy-esp32s3-mqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmislam%2Fqtpy-esp32s3-mqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmislam%2Fqtpy-esp32s3-mqtt/lists"}