Building IoT Backend & Web App with

$ whoami
Alwin Arrasyid

Web app code:

https://github.com/alwint3r/iot-webapp-base

Why ?

Why Node.js ?

What are we gonna learn today?

What are we gonna learn today?

  • Read data from device via MQTT
  • Control device via MQTT

MQTT is....

Quoting from mqtt.org,

 

MQTT is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. It was designed as an extremely lightweight publish/subscribe messaging transport.

Notable Points

  • Client & Broker
  • Pub/sub
  • Topic
  • Message

Broker

IoT
Device

App

{ "switch": 0 }

topic: winter/control

{ "switch": 0 }

topic: winter/control

{ "temperature": 28.2 }

topic: winter/data

{ "temperature": 28.2 }

topic: winter/data

Made with Slides.com