This tutorial will describe how to create and test a lightweight, object-oriented state machine implementation in Python. Create State Machine First, you need to install transitions and import it to your python project. pip install transitions from transitions import Machine…

This tutorial will describe how to create and serve a simple REST API using Django. Django is a framework for creating web backends using Python. It’s very fast, and if you are familiar with Python it is very easy to…

Creating a simple MQTT client in JavaScript This recipe contains a step-by-step guide to setting up and getting started with a simple MQTT client using HTML, JavaScript and CSS. For extended explanation of concepts and code using a similar code…

The MQTT Protocol Last week we used HTTP to communicate between applications. HTTP was a request-response protocol. This week, we look at MQTT, which is a publish-subscribe protocol. Some useful things to Know About MQTT Read the following articles: 5…

In this recipe we connect the Adafruit PN532 NFC/RFID Shield to a Raspberry Pi and Reactive Blocks via the I2C bus. Physical Connection Connect the NFC shield with the following pins of the Raspberry Pi Connector. (Use a breadboard or…