diff options
-rw-r--r-- | assignments/mqtt-with-button/mqtt-with-button.md | 6 | ||||
-rw-r--r-- | assignments/mqtt-with-button/mqtt-with-button.pdf | bin | 857213 -> 858455 bytes |
2 files changed, 5 insertions, 1 deletions
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 Binary files differindex ccb511e..9b4e92e 100644 --- a/assignments/mqtt-with-button/mqtt-with-button.pdf +++ b/assignments/mqtt-with-button/mqtt-with-button.pdf |