Watch Star Fork

Jianhui Zhao / libumqttCGPL-3.0

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 最后提交于 2018-01-30 00:15 Fix bug: Parse error in big endian mode
取消
提示: 由于 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 )

你可以在登录后,对此项目发表评论

6_float_left_people 6_float_left_close