From f9d95f812b53fcb365522babe39d518b01a7b624 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 21 Apr 2018 14:20:40 +0200 Subject: wip --- what-is-iot-reveal.html | 73 +++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 61 insertions(+), 12 deletions(-) (limited to 'what-is-iot-reveal.html') diff --git a/what-is-iot-reveal.html b/what-is-iot-reveal.html index 3a5698e..6413627 100644 --- a/what-is-iot-reveal.html +++ b/what-is-iot-reveal.html @@ -29,7 +29,6 @@ -
@@ -273,13 +272,9 @@

Details: IP

- -

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.

-

Lecture: ESP8266 aka NodeMCU aka ESP-12

ESP8266 software layers

-

Lecture: MQTT

MQTT

@@ -305,16 +300,17 @@
  • Broker (aka Server)
    • Handles network connections
    • -
    • Keeps subscription state
    • +
    • Keeps subscriptions
    • Manages client
      • Disconnects
      • (last) will
    • -
    • Persistence
    • +
    • Persistence of retained messages
  • -

    MQTT - The protocol

    +
    +

    MQTT - The protocol - Retained message

    +

    Message is kept by the server even after disconnect

    +
      +
    • CONNECT
    • +
    • PUBLISH +
        +
      • RETAIN
      • +
      • $app/$device/temperature
      • +
      • 22.3
      • +
    • +
    • DISCONNECT
    • +
    +

    Later on:

    +
      +
    • SUBSCRIBE +
        +
      • $app/#/temperature
      • +
    • +
    • PUBLISH +
        +
      • $app/$device/temperature
      • +
      • 22.3
      • +
    • +
    + +
    +

    MQTT - The protocol - Will message

    +

    Message sent when you disconnect

    +

    Client #1:

    +
      +
    1. CONNECT +
        +
      • WILL TOPIC: $app/$device/online
      • +
      • WILL PAYLOAD: 0
      • +
    2. +
    3. PUBLISH +
        +
      • $app/$device/online
      • +
      • 1
      • +
    4. +
    5. DISCONNECT
    6. +
    +

    +

    Broker

    +
      +
    1. PUBLISH +
        +
      • $app/$device/online
      • +
      • 0
      • +
    2. +

    MQTT - Patterns

    Må utvides

    Explain:

      -
    • Message sizes with MQTT
    • -
    • “will” messages
    • Push vs pull, central applications can push to clients
    • mostly mqtt, some http
    • +
    • Client id - sparker ut gamle koblinger
    • +
    • Keep alive / ping meldinger
    • +
    • Alternative transporter - websockets(!)

    MQTT - Implementations

    @@ -428,7 +477,7 @@
  • Amazon IoT
  • Google Cloud IoT
  • Microsoft Azure IoT
  • -
  • CloudMQTT
  • +
  • CloudMQTT (at Heroku)
  • DIY
      -- cgit v1.2.3