Posts

Showing posts from October, 2018

MQTT – A Practical Guide to IOT Protocol

Image
MQTT is very useful for connections with remote client where a small code footprint is needed, or internet bandwidth is very low. For example, it has been used in sensors communicating to a broker using satellite link or in a range of home automation and small devices. Also, ideal for mobile applications because of its, low power usage, small size, minimized data packets, and well distribution of information to one or many receivers. MQTT Protocol was first designed in 1999, but with the growth of the IoT, and the need to communicate between low-powered devices, MQTT has recently found it’s market. MQTT was designed with ability to run in an embedded environment where it would reliably and effectively provide an avenue for communication. How It Works MQTT protocol uses a publish/subscribe architecture where as HTTP uses its request/response architecture. MQTT protocol is event driven and enables messages to be pushed to clients. The heart of MQTT protocol is the MQTT broker, it

Internet Of Things: Controlling an LED/Bulb using Facebook Messenger Chatbot via Chatfuel and MQTT!

Image
Material to get started: ESP8266 12e NodeMCU manufactured by Lolin (Check the datasheet, if you are using a different version.) Fig. 2: ESP8266 12e by Lolin USB Type C cable to program ESP8266 12e from a laptop or PC. Most Android phones use this type of cable. Fig. 3: USB Type C Cable Relay Module – Relay is an electro-mechanical switching device. In a relay, we can control switching AC or DC appliances digitally by providing input to relay input pins. Here we have used a 1-channel relay operating on 5 Volts. Fig. 4: 1 Channel Relay Module To connect your AC appliance, use the following connection with the Relay Module use the following connection. The Signal pin is IN. Fig. 5: Relay Connection With some wires and breadboard. Back End Set-up : Set-up with Facebook Messenger: We need a Virtual human to chat with. For this, we will create a Facebook Page. Fig. 6: Create a Facebook Page To create a Facebook Page, click  here  and Get Started with  Community o