aboutsummaryrefslogtreecommitdiff
path: root/assignments/mqtt
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2018-06-13 20:41:24 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2018-06-13 20:41:24 +0200
commita4cbbee0671ff20560c31a2f3945b6131496ab2b (patch)
tree7b3a7d80db0eb3377d87bb812a3cc233f7f0cd4d /assignments/mqtt
parente4bdeee49319bc5570dfa0e998e4e68f3c33ee8c (diff)
downloadiot-workshop-ndc-2018-a4cbbee0671ff20560c31a2f3945b6131496ab2b.tar.gz
iot-workshop-ndc-2018-a4cbbee0671ff20560c31a2f3945b6131496ab2b.tar.bz2
iot-workshop-ndc-2018-a4cbbee0671ff20560c31a2f3945b6131496ab2b.tar.xz
iot-workshop-ndc-2018-a4cbbee0671ff20560c31a2f3945b6131496ab2b.zip
wip
Diffstat (limited to 'assignments/mqtt')
-rw-r--r--assignments/mqtt/mqtt.md41
-rw-r--r--assignments/mqtt/mqtt.pdfbin104784 -> 0 bytes
2 files changed, 0 insertions, 41 deletions
diff --git a/assignments/mqtt/mqtt.md b/assignments/mqtt/mqtt.md
deleted file mode 100644
index f52eed3..0000000
--- a/assignments/mqtt/mqtt.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# Assignment: MQTT
-
-## Goal
-
-Get aquainted with MQTT.
-
-## Steps
-
-1. Connect to the Wi-Fi network
- * Use `WiFi.localIP()`
-
-1. Connect to MQTT broker
-1. Publish temperature
-
-## Tips
-
-To generate a client id make something with `ESP.getChipId()`{.cpp}
-
-Creating a `String` from a number:
-
-* `String(123) => "123"`{.cpp}
-* Hex formatted: `String(0x123abc, HEX) => "123abc"`{.cpp}
-
-Some APIs require "plain C strings" aka a `char *`{.cpp}. They can be converted with `String::c_str()`:
-
-~~~.c++
-char *cStr = myString.c_str();
-~~~
-
-## Bonus
-
-**1:** Print the heap free size at regular intervals.
-
-**2:** Implement min, max and average temperature over configured interval.
-
-Suggested parameters:
-
-* Sample interval: 2 seconds
-* Publish interval: 10 seconds
-
-**3:** Make sure the values are calculated even if we're reconnecting to the Wi-Fi or MQTT server.
diff --git a/assignments/mqtt/mqtt.pdf b/assignments/mqtt/mqtt.pdf
deleted file mode 100644
index 8d35bb7..0000000
--- a/assignments/mqtt/mqtt.pdf
+++ /dev/null
Binary files differ