From 69dbda437da21c7e0e9bd2aa8f2ba8a2172a46fc Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Thu, 14 Jun 2018 12:08:25 +0200 Subject: wip --- assignments/mqtt-with-button/mqtt-with-button.md | 6 +++++- assignments/mqtt-with-button/mqtt-with-button.pdf | Bin 857213 -> 858455 bytes 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/assignments/mqtt-with-button/mqtt-with-button.md b/assignments/mqtt-with-button/mqtt-with-button.md index 30defc8..7da820d 100644 --- a/assignments/mqtt-with-button/mqtt-with-button.md +++ b/assignments/mqtt-with-button/mqtt-with-button.md @@ -11,6 +11,9 @@ * Install the *PubSubClient* library. Use the library manager under *Sketch -> Include library -> Library Manager* to install it. +* Open http://www.hivemq.com/demos/websocket-client/ and subscribe to + `ndc/#` or `ndc/$deviceId/#`. + ## Step 1 Wire up this schematic on the bread board: @@ -30,7 +33,8 @@ practice as it uses lots of energy. Instead use the `attachInterrupt`. # Step 3 * Connect to the Wi-Fi network -* Connect to MQTT broker +* Connect to MQTT broker. Use `broker.hivemq.com:1883` as host and + port. See the slides for example code. diff --git a/assignments/mqtt-with-button/mqtt-with-button.pdf b/assignments/mqtt-with-button/mqtt-with-button.pdf index ccb511e..9b4e92e 100644 Binary files a/assignments/mqtt-with-button/mqtt-with-button.pdf and b/assignments/mqtt-with-button/mqtt-with-button.pdf differ -- cgit v1.2.3