Embedded C client library for the MQTT protocol
Clone or download
menudoproblema Merge pull request #3 from leecom3025/master
libemqtt Android NDK porting
Latest commit 4b718c0 Dec 12, 2014
Type Name Latest commit message Commit time
Failed to load latest commit information.
client Use sane default broker address of localhost. Nov 11, 2013
include Added support for mutlibyte remaining lenght. Moved more complex macr… Jan 25, 2013
src Message identifier should be 16bits Oct 21, 2014
.gitignore Excluding *.so (.gitignore) Mar 26, 2012
Android.mk libmqtt Android NDK porting Sep 18, 2014
LICENSE Initial files Mar 2, 2012
Makefile Refactor Apr 10, 2012
README.markdown README Apr 10, 2012
TODO.markdown TODO Apr 12, 2012



This program is a fork of liblwmqtt developed by Filipe Varela. You can find the original project on http://code.google.com/p/liblwmqtt/.

libemqtt aims to be an embedded C client library for the MQTT protocol. It also provides a binding for Python.


Under development. DO NOT USE in a serious development. API is not closed, so it could be changed.

I hope to release the first version in April.


C Library

$ make

Python binding

$ make python


C Library

Python binding

$ sudo ln -fs /home/user/libemqtt/client/libemqtt.so /usr/lib/python2.7/emqtt/libemqtt.so


  • Can not subscribe to multiple topics in the same MQTT message.


For debugging MQTT development it's possible to use Wireshark-MQTT (https://github.com/menudoproblema/Wireshark-MQTT)