{"id":36624025,"url":"https://github.com/memfault/esp32-standalone-example","last_synced_at":"2026-01-12T09:29:50.012Z","repository":{"id":100515472,"uuid":"598315417","full_name":"memfault/esp32-standalone-example","owner":"memfault","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-28T14:01:22.000Z","size":92,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-03-28T14:37:03.388Z","etag":null,"topics":["esp-idf","esp32","memfault","sample"],"latest_commit_sha":null,"homepage":"","language":"C","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/memfault.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":"2023-02-06T21:12:58.000Z","updated_at":"2025-03-28T14:01:25.000Z","dependencies_parsed_at":"2023-05-19T09:15:45.691Z","dependency_job_id":"e32df964-2735-423b-81b2-032d8f0f2e77","html_url":"https://github.com/memfault/esp32-standalone-example","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/memfault/esp32-standalone-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memfault%2Fesp32-standalone-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memfault%2Fesp32-standalone-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memfault%2Fesp32-standalone-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memfault%2Fesp32-standalone-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/memfault","download_url":"https://codeload.github.com/memfault/esp32-standalone-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/memfault%2Fesp32-standalone-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["esp-idf","esp32","memfault","sample"],"created_at":"2026-01-12T09:29:49.877Z","updated_at":"2026-01-12T09:29:50.000Z","avatar_url":"https://github.com/memfault.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esp32 Demo Application\n\nThis Demo App is based on the console example from ESP-IDF, which can be found\nhere relative to the ESP-IDF SDK root folder:\n\n- `examples/system/console/advanced/`\n\n```bash\n$ git submodule update --init --recursive\n$ echo 'CONFIG_MEMFAULT_PROJECT_KEY=\"YOUR_KEY\"' \u003e\u003e sdkconfig.defaults\n# by default, 'idf.py build' will target esp32\n$ idf.py build\n# flash the board and start the serial monitor\n$ idf.py flash monitor\n```\n\nGet your project key from https://mflt.io/project-key.\n\n## Configuring for MQTT\n\nThis application includes an option to send Memfault data over MQTT. This option requires a few extra pieces to set up.\nYou can either follow the steps outlined here or use your own MQTT setup.\n\n### Broker Setup\n\n1. Install a local installation of Cedalo by following the [installation guide](https://docs.cedalo.com/management-center/installation/)\n2. Login to Cedalo at \u003chttp://localhost:8088\u003e\n3. Create a new client login for the device\n   - Ensure device client has the \"client\" role to allow publishing data\n4. Create a new client login for the Python service\n   - Ensure Python service client has \"client\" role to allow subscribing to data\n\n### Service Setup\n\n1. Modify the script found in [Docs-\u003eBest Practices-\u003eMQTT](https://docs.memfault.com/docs/best-practices/mqtt-with-memfault#service-examples)\n   with Memfault with the the following:\n   1. The service client login information previously created\n   2. Connection info for your local broker\n   3. Map of Memfault projects to project keys\n2. Start the service by running `python mqtt.py`\n\n### Device Setup\n\n1. Make the following modifications to `main/app_memfault_transport_mqtt.c`:\n   1. Update `MEMFAULT_PROJECT` macro with your project's name\n   2. Update `s_mqtt_config` with your setup's IP address, and MQTT client username and password\n2. Clean your existing build with `idf.py fullclean \u0026\u0026 rm sdkconfig`\n3. Set your target: `idf.py set-target \u003cesp32_platform_name\u003e`\n4. Build your image: `idf.py -D SDKCONFIG_DEFAULTS=\"sdkconfig.defaults;sdkconfig.mqtt\" build`\n5. Flash to your device using `idf.py flash`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemfault%2Fesp32-standalone-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmemfault%2Fesp32-standalone-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmemfault%2Fesp32-standalone-example/lists"}