A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/kokke/tiny-MQTT-c below:

kokke/tiny-MQTT-c: Small implementation of (some of) the MQTT protocol in C

A small incomplete undocumented and poorly tested MQTT 3.1.1 client library written in <500 lines of C99. The library uses no dynamic allocation and compiles down to ~1K on ARM thumb.

NOTE: This is very much a work in progress still. It should be fairly easy to hack on though.

See mqtt.h and mqtt.c for the implementation of the MQTT protocol.

client.c, client.h and client_test.c.c are just TCP drivers to test the MQTT library. The test is performed by connecting to a public MQTT broker and publishing some gibberish.

Compile and try by running

gcc client.c mqtt.c client_test.c -Wall -Wextra 
./a.out &
./a.out pub

.... and sit back and watch the horrors unfold


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4