Capstone Update February 22, 2019

Hi,

We have ditched the idea of taking information straight from the BACnet client and putting it through Node-Red and into cloud, instead we can explore a different option, MQTT. MQTT (Message Queuing Telemetry Transport) protocol is an open source protocol which can be run on the Raspberry Pi 3 and Node-Red. This protocol is mostly used for sensor networks where there is a massive amount of data being transferred to a single point.

To make a connection to MQTT we can either use another Raspberry Pi 3, NodeMCU Esp8266 or Arduino Wifi. Arduino Wifi is the oldest out of all of them and Raspberry Pi 3 seems like overkill, so we will explore the NodeMCU Esp8266.

The NodeMCU Esp8266 has WiFi capabilities and therefore can connect with MQTT. We will be programming it through Arduino, for a quick start guide on how to set it up for Arduino please visit here.

Assuming everything is set up, we need to install the WiFi and pubsub libraries which can be done by going tools, manage libraries and searching them up.

Using MQTT we have made connection to Node-Red and we can then send a message to Node-Red and from Node-Red we can send a message back.
Because the programming is in Arduino, the void loop will constantly send hello world to the server, and Node-Red has sent us Bye as a response. 

Comments

Popular posts from this blog

Capstone Update February 1, 2019