Creating an MQTT Broker With CloudMQTT

Cloud based brokers are likely to become very popular in the future for organisations they operate over a wide geographic area. In addition they provide a nice user interface making it very easy to setup your own broker instance and you don’t need to have to manage your own virtual server. CloudMQTT like Amazon,Azure etc provide a managed cloud based mosquitto broker. The plans on CloudMQTT are shared plans which means that several MQTT brokers run on the same hardware.

Continue reading

Subnetting and Subnet Masks Explained

What is Subnetting ?-Subnetting is the process of diving a network into small networks and is a common task on IPV4 networks. Before we discuss how to implement it it is useful to understand why and when we need to do it and to do that we are first going to work through a simple analogy to illustrate the problem subnetting solves

Continue reading

Logging MQTT Sensor Data Using Python

In this project we will create a simple data logger that logs IOT sensor/device data in JSON or csv format to a text log file. The project Consists of two main modules. A logger class module mlogger.py The logging script mqtt-data-logger.py It also has helper module commands.py  which gets and parses command line arguments. Note: There is also the Simple Python MQTT Topic Logger which logs data based on topic that may be more suitable for your project. Logger Class The class is implemented in a module called m_logger.py (message logger). It can be used for logging data from any

Continue reading

MQTT Keep Alive Interval Explained With Examples

MQTT uses a TCP/IP connection. This connection is normally left open by the client so that is can send and receive data at any time. If no data flows over an open connection for a certain time period then the client will generate a PINGREQ and expect to receive a PINGRESP from the broker.

Continue reading

My Python Working Notes

Most Python programming books cover the basics of python programming but don’t always deal very much with practical implementation and usage. As someone who is relatively new to python I come across lot’s of things that are probably obvious for an experienced programmer but not so obvious when you are just starting out.

Continue reading