Julio Cesar Salim Gouy
Published

Node-Red and MQTT for Your IoT Projects

The idea is to create an environment running an MQTT Server, Mosquitto, and Node-Red, and start developing projects with connected sensors.

IntermediateWork in progress6 hours2,556
Node-Red and MQTT for Your IoT Projects

Things used in this project

Hardware components

Tinker Board
Tinker Board
×1
SparkFun Block for Intel® Edison - microSD
SparkFun Block for Intel® Edison - microSD
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1
9V 1A Switching Wall Power Supply
9V 1A Switching Wall Power Supply
×1

Software apps and online services

IBM Node-Red
OpenBuilds MQTT Server
Eclipse Mosquitto™ is an open source (EPL/EDL licensed)

Story

Read more

Schematics

Steps to Install Tinkerboard OS, Node-Red and Mosquitto MQTT Server

These are the steps to follow to prepare your Tinkerboard as an MQTT Server with Node-Red for the Connected Sensors IoT Projects

Code

Node-Red 1st Code

JavaScript
The Hello World
[{"id":"2a87cd38.e42762","type":"inject","z":"85d8cb7f.45a728","name":"Hello World!!!","topic":"","payload":"Hello World!!!","payloadType":"str","repeat":"","crontab":"","once":false,"x":370,"y":260,"wires":[["ceb6d90a.e13338"]]},{"id":"ceb6d90a.e13338","type":"debug","z":"85d8cb7f.45a728","name":"You did it!","active":true,"console":"false","complete":"payload","x":540,"y":300,"wires":[]},{"id":"52801136.afc2b","type":"mqtt in","z":"85d8cb7f.45a728","name":"My Sensor Data","topic":"/tinker/sensor/temp","qos":"2","broker":"82e9bd20.83a53","x":357.16668701171875,"y":335,"wires":[["ceb6d90a.e13338"]]},{"id":"c7076683.958bc8","type":"comment","z":"85d8cb7f.45a728","name":"MQTT Sensor Data","info":"","x":370,"y":400,"wires":[]},{"id":"82e9bd20.83a53","type":"mqtt-broker","z":"","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""}]

Credits

Julio Cesar Salim Gouy

Julio Cesar Salim Gouy

0 projects • 1 follower
Very interested in IoT solutions...
Contact

Comments