Skip to content

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

Notifications You must be signed in to change notification settings

lightmanWang/libumqtt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 90.6%
  • CMake 9.4%