Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.69 KB

readme.md

File metadata and controls

38 lines (25 loc) · 1.69 KB

Mqtt ChatBot Sample

mqtt.js

JavaScript Style Guide

BOT Framework

HitCount

This is a sample chatbot that can toggle a switch or relay ( MQTT Powered Device ). IT first Subscribes to the same topic as the Relay/Switch and Publishes as the Chatbot recieve Instructions.

Installation

Deploy

or install and run it Locally

git clone https://github.com/heyAyushh/RocketBOT cd RocketBOT && npm install
node index.js

Register the bot on Azure portal

https://dev.botframework.com/

Set Environment Variables

MQTThost // This is the IP of MQTT Broker
MQTTport // The port number of MQTT process
MQTTusername // The username of MQTT config, Leave it empty if you don't have one
MQTTpassword // The password of MQTT config, Leave it empty if the above
MQTTtopic // MQTT topic on which the key is subscribed MICROSOFT_APP_ID // Microsoft APP ID from Registration portal
MICROSOFT_APP_PASSWORD Microsoft APP secret from Registration Portal

<-----------------KUDOS-------------------------------------->