General purpose library for communication over the mqtt protocol
Перейти к файлу
jbobotek e500d8c03b fix apple ios tls 2020-11-12 10:48:58 -08:00
build Update .vsts-ci.yml 2020-04-03 19:04:18 -07:00
build_all Release_2018_05_04 after bump version script 2018-05-07 15:29:06 +00:00
configs Makes umqtt installable and a find module in CMake. Builds with -fPIC always. 2016-11-09 09:58:30 -08:00
deps fix apple ios tls 2020-11-12 10:48:58 -08:00
devdoc/requirement_docs Update references to renamed macros from macro_utils.h 2019-03-26 16:53:47 -07:00
inc/azure_umqtt_c match function decl and fix leak 2020-10-20 13:53:25 -07:00
jenkins Create raspberrypi_c_buster.sh 2020-04-03 19:03:32 -07:00
samples New dependencies 2019-09-06 14:11:38 -07:00
src add null check and comment 2020-10-19 14:01:24 -07:00
tests match function decl and fix leak 2020-10-20 13:53:25 -07:00
tools Change kickjenkins to accept argument for integrate into develop_c 2016-09-20 08:44:33 -07:00
.gitignore Change the Test submodules to be more efficient (#46) 2019-04-05 15:05:26 -07:00
.gitmodules Change the Test submodules to be more efficient (#46) 2019-04-05 15:05:26 -07:00
CMakeLists.txt Fixing bug where Pending close was not getting turned off (#60) 2019-08-09 09:22:29 -07:00
LICENSE Update mqtt repo with initial files 2015-12-04 14:05:59 -08:00
SECURITY.MD Adding SECURITY.MD to this repo. 2019-11-04 17:00:08 -08:00
readme.md Change the Test submodules to be more efficient (#46) 2019-04-05 15:05:26 -07:00
version.txt changing mqtt %zu to %ld for mbed (#33) 2019-01-11 15:10:59 -08:00

readme.md

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Microsoft Azure MQTT

azure-umqtt-c is a general purpose library build for MQTT protocol

Dependencies

azure-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.). azure-c-shared-utility is available here: https://github.com/Azure/azure-c-shared-utility. azure-c-shared-utility needs to be built before building azure-mqtt-c.

Setup

Build

  • Clone azure-umqtt-c by:
git clone https://github.com/Azure/azure-umqtt-c.git
cd azure-umqtt-c
git submodule update --init
  • Create a folder cmake under azure-umqtt-c

  • Switch to the cmake folder and run

cmake ..
  • Build
cmake --build .

Installation and Use

Optionally, you may choose to install azure-umqtt-c on your machine:

  1. Switch to the cmake folder and run

    cmake -Duse_installed=ON ../
    cmake --build . --target install
    

    or install using the follow commands for each platform:

    On Linux:

    sudo make install
    

    On Windows:

    find_package(umqtt REQUIRED CONFIG)
    target_link_library(yourlib umqtt)
    

This requires that azure-c-shared-utility is installed (through CMake) on your machine.

If running tests, this requires that umock-c, azure-ctest, and azure-c-testrunnerswitcher are installed (through CMake) on your machine.

Building the tests

In order to build the tests use:

cmake .. -Drun_unittests:bool=ON