12
NodeMCU X Browser X Raspberry Pi 2 X MQTT

Node mcu x raspberrypi2 x mqtt

  • Upload
    -

  • View
    1.784

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Node mcu x raspberrypi2 x mqtt

NodeMCU X

BrowserX

Raspberry Pi 2X

MQTT

Page 2: Node mcu x raspberrypi2 x mqtt

MQTT-Broker

Sensor

Sensor

Browser

Browser

Mobile

subscribe

subscribe

subscribe

subscribe

subscribe

publish

publish

subscribe

publish

publish

wifi

Page 3: Node mcu x raspberrypi2 x mqtt

1.Raspberry Pi 2MQTT-Broker

Page 4: Node mcu x raspberrypi2 x mqtt

Mosquitto config file

mosquitto.conf# Default listener# ====================port 1883listener 11111protocol websocketslistener 22222protocol mqtt

Page 5: Node mcu x raspberrypi2 x mqtt

2.NodeMCUSensor

Page 6: Node mcu x raspberrypi2 x mqtt

NodeMCUAn open-source firmware and development kit that helps you

to prototype your IOT product within a few Lua script lines

Page 7: Node mcu x raspberrypi2 x mqtt

NodeMCU FlasherA firmware programmer for NodeMCU DEVKIT.

Page 8: Node mcu x raspberrypi2 x mqtt

LuaLoaderLuaLoader is a Windows program for uploading files to the

ESP8266(NodeMCU) and working with the Lua serial interface.

Page 9: Node mcu x raspberrypi2 x mqtt

3.Terminalscontroller

Page 10: Node mcu x raspberrypi2 x mqtt

Paho Javascript ClientThe Paho JavaScript Client is a browser-based library that

uses WebSockets to connect to an MQTT server.<script src="./script/mqttws31.js" type="text/javascript"></script>

Page 11: Node mcu x raspberrypi2 x mqtt

MODE

Page 12: Node mcu x raspberrypi2 x mqtt

THANKS!

Any questions?