MQTT-SN Topic Names and Identifiers

MQTT Topics are UTF-8 strings structured in a hierarchy similar to folders and files in a file system using the forward slash ( / )as a delimiter. To be valid a topic must be at least 1 character long and generally in real world applications they 10s of characters in length. The topic is sent with every message published, and so in order to reduce the length of published messages MQTT-SN uses shorter topic names. it does this by using a variety of topic identifiers in place of standard topic name used in MQTT.

Continue reading

Using The Python MQTT-SN Client

The MQTT-SN client used here is the client from the RSMB source files but upgraded to python 3, and modified to work in a similar fashion to the Paho MQTT client. I created it so that I could learn more about MQTT-SN and you should note it is still a work in progress. I would not recommend it in a production environment and would be grateful if you would let me know of any problems with it. Downloads are at the end. The client consists of 4 files. You can copy these source files into the site packages folder under

Continue reading