{"id":15291132,"url":"https://github.com/azure/azure-umqtt-c","last_synced_at":"2025-05-16T04:06:54.851Z","repository":{"id":3559304,"uuid":"47300762","full_name":"Azure/azure-umqtt-c","owner":"Azure","description":"General purpose library for communication over the mqtt protocol","archived":false,"fork":false,"pushed_at":"2025-01-28T21:54:02.000Z","size":1048,"stargazers_count":51,"open_issues_count":1,"forks_count":51,"subscribers_count":58,"default_branch":"master","last_synced_at":"2025-05-10T00:12:01.233Z","etag":null,"topics":["c","mqtt","mqtt-client","mqtt-protocol"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Azure.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":"SECURITY.MD","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-03T02:01:28.000Z","updated_at":"2025-03-25T00:58:07.000Z","dependencies_parsed_at":"2023-11-28T01:30:25.864Z","dependency_job_id":"1fedbd4a-6dd6-4450-85ae-c51bd4915b91","html_url":"https://github.com/Azure/azure-umqtt-c","commit_stats":{"total_commits":711,"total_committers":65,"mean_commits":"10.938461538461539","dds":0.7834036568213784,"last_synced_commit":"d7520b1cc075e9780723a800ea4af2f5af1d4d15"},"previous_names":[],"tags_count":69,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fazure-umqtt-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fazure-umqtt-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fazure-umqtt-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Azure%2Fazure-umqtt-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Azure","download_url":"https://codeload.github.com/Azure/azure-umqtt-c/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464896,"owners_count":22075570,"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":["c","mqtt","mqtt-client","mqtt-protocol"],"created_at":"2024-09-30T16:11:03.814Z","updated_at":"2025-05-16T04:06:49.842Z","avatar_url":"https://github.com/Azure.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\r\n\r\n# Microsoft Azure MQTT\r\n\r\nazure-umqtt-c is a C library for MQTT 3.1 protocol communication to Azure Cloud IoT Services.\r\n\r\n## Dependencies\r\n\r\nazure-mqtt client use the azure-c-shared-utility, which is a C library provisioning common functionality for basic tasks (like string, list manipulation, IO, etc.).\r\nazure-c-shared-utility is available here: \u003chttps://github.com/Azure/azure-c-shared-utility\u003e.\r\nazure-c-shared-utility needs to be built before building azure-mqtt-c.  \r\n\r\n## Setup\r\n\r\n### Build\r\n\r\n- Clone azure-umqtt-c by:\r\n\r\n```Shell\r\ngit clone https://github.com/Azure/azure-umqtt-c.git\r\ncd azure-umqtt-c\r\ngit submodule update --init\r\n```\r\n\r\n- Create a folder cmake under azure-umqtt-c\r\n\r\n- Switch to the cmake folder and run\r\n\r\n```Shell\r\ncmake ..\r\n```\r\n\r\n- Build\r\n\r\n```Shell\r\ncmake --build .\r\n```\r\n\r\n### Installation and Use\r\n\r\nOptionally, you may choose to install azure-umqtt-c on your machine:\r\n\r\n1. Switch to the *cmake* folder and run\r\n\r\n    ```Shell\r\n    cmake -Duse_installed=ON ../\r\n    cmake --build . --target install\r\n    ```\r\n\r\n    or install using the follow commands for each platform:\r\n\r\n    On Linux:\r\n\r\n    ```Shell\r\n    sudo make install\r\n    ```\r\n\r\n    On Windows:\r\n\r\n    ```Shell\r\n    find_package(umqtt REQUIRED CONFIG)\r\n    target_link_library(yourlib umqtt)\r\n    ```\r\n\r\n_This requires that azure-c-shared-utility is installed (through CMake) on your machine._\r\n\r\n_If running tests, this requires that umock-c, azure-ctest, and azure-c-testrunnerswitcher are installed (through CMake) on your machine._\r\n\r\n### Building the tests\r\n\r\nIn order to build the tests use:\r\n\r\n```Shell\r\ncmake .. -Drun_unittests:bool=ON\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazure%2Fazure-umqtt-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazure%2Fazure-umqtt-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazure%2Fazure-umqtt-c/lists"}