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 readingAuthor: steve
How to Send a File Using MQTT and Python
In this tutorial will will look at how we can send a file or picture using MQTT. The script is written in Python and the approach I used was to send the file as bytes.
Continue readingHow to Encrypt MQTT Payloads with Python – Example Code
Encrypting the MQTT payload rather than the link has the advantage that the data is encrypted end to end and not just between the broker and the client.
Continue readingSimple Python MQTT Publish and Subscribe Example Script
This is a very simple example script to publish to a topic, and then receive the published message. To do that we will need to first subscribe to the topic and then publish messages to the same topic.
Continue readingLogging MQTT Sensor Data Using Python
In this project we will create a simple data logger that logs IOT sensor/device data in JSON 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 source not
Continue readingMQTT 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 readingMy 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 readingMQTT Brokers and Cloud Hosting Guide
In order to use MQTT you require an MQTT broker. The broker (server) is the central hub of an MQTT network as shown in the diagram below.. When it comes to choosing an MQTT broker you have three main options: Use your Own Locally Installed Broker/Server Use a Cloud Based Sever or Virtual Server Use a Shared Server Application
Continue readingCreating an IOT or MQTT Dashboard Using Thingsboard
Thingsboard is an open source IOT platform for data visualization. It is available for download and installation on your own hardware or as an online service for demonstration purposes. In this tutorial we will configure a simple Dashboard to display data from sensors using MQTT and Python.
Continue readingGuide to IOT Dashboards and Platforms
IOT dashboards are essential for visualizing IOT data, and controlling IOT devices. A Dashboard is a crucial component of any IOT platform.
Continue reading