Using MongoDB Working Notes

If you’re new to mongoDB and are looking to use it on one of your IOT projects then you might find my working notes useful. Install – Manual links to install on multiple platforms How to Install mongoDB on Windows 10. The database files are stored in c:\data\db on Windows (default) and in the folder /var/lib/mongodb on Linux (Raspberry pi).

Continue reading

How MQTT Works -Client Connections

MQTT is a messaging protocol i.e it was designed for transferring messages, and uses a publish and subscribe model. This model makes it possible to send messages to 0,1 or multiple clients.

Continue reading

Public MQTT Brokers and Reserved Topics – Discussion Post

Preface This is a discussion post and these are currently my thoughts on this topic. I would be grateful for comments and feedback. Introduction MQTT is still in the early stages of deployment and currently is used only on private networks. However with the growth in the adoption of the MQTT protocol for information distribution the number of public brokers and topics will probably increase substantially just as happened with websites in the early days of the internet.

Continue reading

Installing and Starting Node-Red

Installing Node Red Node-Red is a node application and before you Install node red you will need to first install node. Here are the instructions: Installing Node on Windows Installing Node on Linux Using a Package Manager Then you can Install node red on Windows and Linux (including raspberry pi) using:

Continue reading

Node-Red Admin Interface, Node and Flow Basics

To administer node-red you will need to go the admin url. The admin url is the machine name or IP address followed by the port number. e.g  127.0.0.1:1880/ if you are running the browser on the same machines as node-red. localhost:1880/ – steve-laptop:1880/ when running node-red on a remote machine 192.168.1.154:1880/ I currently run node-red on a Raspberry Pi and use a second machine (windows 10) to create flows.   Using The Node Red Admin User Interface (UI) When you open the node-red admin screen for the first time you should start with an empty work space as shown in

Continue reading

Using the Paho Node.js MQTT Client-Starting Guide

The node.js MQTT client is an open source client that can be used for publishing messages and subscribing to topics on an MQTT broker. It  can be installed using: npm install mqtt –save and npm install mqtt -g To install the command line tools Documentation for the client is available here

Continue reading