Watch Star Fork

Jianhui Zhao / libumqttCLGPL-2.1

加入码云
与超过 200 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
A Lightweight and fully asynchronous MQTT 3.1.1 client C library based on libubox for Embedded Linux. Support QoS 0, 1 and 2. Support ssl.
Jianhui Zhao 最后提交于 Update README
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README.md 2.23 KB

libumqtt

license PRs Welcome Issue Welcome Release Version Build Status

A Lightweight and fully asynchronous MQTT 3.1.1 client C library based on libubox for Embedded Linux. Support QoS 0, 1 and 2. Support ssl.

Keep Watching for More Actions on This Space

Dependencies

How to build and install

For Linux distribution, such as Ubuntu and Centos

Install build tools

sudo apt install gcc cmake git      # For Ubuntu

yum install gcc cmake git           # For Centos

Install dependent packages

sudo apt install libjson-c-dev      # For Ubuntu

sudo apt install json-c-devel       # For Centos

git clone https://git.openwrt.org/project/libubox.git
cd libubox && cmake -DBUILD_LUA=OFF . && sudo make install

Install libumqtt

git clone https://github.com/zhaojh329/libumqtt.git
cd libumqtt && cmake . && sudo make install

Run example

./example/helloworld

For Embedded Linux Platform

You need to cross compiling by yourself

Contributing

If you would like to help making libumqtt better, see the CONTRIBUTING.md file.

项目点评 ( 0 )

你可以在登录后,发表评论

9_float_left_people 9_float_left_close