/paho.mqtt-sn.embedded-c

Paho C MQTT-SN gateway and libraries for embedded systems. Paho is an Eclipse IoT project.

Primary LanguageC++

Eclipse Paho MQTT-SN C/C++ client for Embedded platforms

This repository contains the source code for the Eclipse Paho MQTT-SN C/C++ client library for Embedded platorms.

It is dual licensed under the EPL and EDL (see about.html and notice.html for more details). You can choose which of these licenses you want to use the code under. The EDL allows you to embed the code into your application, and distribute your application in binary or source form without contributing any of your code, or any changes you make back to Paho. See the EDL for the exact conditions.

There are three sub-projects:

  1. MQTTSNPacket - simple de/serialization of MQTT-SN packets, plus helper functions
  2. MQTTGateway - MQTT-SN transparent/aggregating gateway - connects MQTT-SN clients with an MQTT server. See the README within the project for more information.
  3. MQTTSNClient - high(er) level C++ client (not yet complete)

The MQTTSNPacket directory contains the lowest level C library with the smallest requirements. This supplies simple serialization and deserialization routines. They serve as a base for the higher level libraries, but can also be used on their own. It is mainly up to you to write and read to and from the network.

The MQTTSNGateway directory contains an MQTT-SN to MQTT transparent/aggregating gateway (see the MQTT-SN specification for a description of that.) It can be used to connect the MQTT-SN client to an MQTT server.

The MQTTSNClient directory contains the next level C++ library. This is intended to mirror the way the MQTTClient works in the Paho embedded MQTT project, but it's not yet complete.

Build requirements / compilation

CMake builds have been introduced, along with Travis-CI configuration for automated build & testing.

The travis-build.sh file has the full build and test sequence for Linux.

Usage and API

See the samples directories for examples of intended use. Doxygen config files are available in the doc directory.

Runtime tracing

Reporting bugs

This project uses GitHub Issues here: github.com/eclipse/paho.mqtt-sn.embedded-c/issues to track ongoing development and issues.

More information

Discussion of the Paho clients takes place on the Eclipse Mattermost Paho channel and the Eclipse paho-dev mailing list.

General questions about the MQTT protocol are discussed in the MQTT Google Group.

More information is available via the MQTT community.