lightmanWang / libumqtt

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

git clone https://git.openwrt.org/project/ustream-ssl.git
cd ustream-ssl && cmake . && 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.

QQ group: 153530783

If the project is helpful to you, please do not hesitate to star. Thank you!

About

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.

License:GNU Lesser General Public License v2.1


Languages

Language:C 90.6%Language:CMake 9.4%