{"id":20400868,"url":"https://github.com/azholtikov/zh_onewire","last_synced_at":"2026-01-30T06:35:49.457Z","repository":{"id":236922732,"uuid":"769023548","full_name":"aZholtikov/zh_onewire","owner":"aZholtikov","description":"ESP32 ESP-IDF and ESP8266 RTOS SDK component for 1-Wire interface.","archived":false,"fork":false,"pushed_at":"2024-07-24T11:47:58.000Z","size":10,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-12T14:06:59.247Z","etag":null,"topics":["component","esp-idf","esp32","esp8266","onewire","rtos-sdk"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aZholtikov.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,"zenodo":null}},"created_at":"2024-03-08T07:24:13.000Z","updated_at":"2025-04-06T19:30:21.000Z","dependencies_parsed_at":"2024-04-29T08:57:10.534Z","dependency_job_id":"346c11a5-b64c-41a5-8617-fb87c10f1fab","html_url":"https://github.com/aZholtikov/zh_onewire","commit_stats":null,"previous_names":["azholtikov/zh_onewire"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/aZholtikov/zh_onewire","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aZholtikov%2Fzh_onewire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aZholtikov%2Fzh_onewire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aZholtikov%2Fzh_onewire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aZholtikov%2Fzh_onewire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aZholtikov","download_url":"https://codeload.github.com/aZholtikov/zh_onewire/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aZholtikov%2Fzh_onewire/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28906664,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T04:02:34.702Z","status":"ssl_error","status_checked_at":"2026-01-30T04:02:33.562Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["component","esp-idf","esp32","esp8266","onewire","rtos-sdk"],"created_at":"2024-11-15T04:47:01.585Z","updated_at":"2026-01-30T06:35:49.439Z","avatar_url":"https://github.com/aZholtikov.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ESP32 ESP-IDF and ESP8266 RTOS SDK component for 1-Wire interface\n\n## Tested on\n\n1. ESP8266 RTOS_SDK v3.4\n2. ESP32 ESP-IDF v5.2\n\n## Using\n\nIn an existing project, run the following command to install the component:\n\n```text\ncd ../your_project/components\ngit clone https://github.com/aZholtikov/zh_onewire.git\n```\n\nIn the application, add the component:\n\n```c\n#include \"zh_onewire.h\"\n```\n\n## Example\n\nSearch 1-Wire devices on bus:\n\n```c\n#include \"zh_onewire.h\"\n\nvoid app_main(void)\n{\n    esp_log_level_set(\"zh_onewire\", ESP_LOG_NONE);\n    uint8_t *rom = NULL;\n    zh_onewire_init(GPIO_NUM_5);\n    if (zh_onewire_reset() != ESP_OK)\n    {\n        printf(\"There are no 1-Wire devices available on the bus.\\n\");\n    }\n    else\n    {\n        zh_onewire_search_rom_init();\n        for (;;)\n        {\n            rom = zh_onewire_search_rom_next();\n            if (rom == NULL)\n            {\n                break;\n            }\n            printf(\"Found device ROM: \");\n            for (uint8_t i = 0; i \u003c 8; ++i)\n            {\n                printf(\"%X \", *(rom++));\n            }\n            rom -= 8;\n            printf(\"\\n\");\n        }\n    }\n}\n```\n\nAny [feedback](mailto:github@azholtikov.ru) will be gladly accepted.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazholtikov%2Fzh_onewire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazholtikov%2Fzh_onewire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazholtikov%2Fzh_onewire/lists"}