diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-27 00:39:19 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-27 00:39:19 +0200 |
commit | 284a60cf65523b3a868a58cf2edc97d190a95608 (patch) | |
tree | e51a5502faf49a5ab94f7249ca43a8bd340089a7 /assignments | |
parent | 02e2780d233c2d73fcbd32a2a970d5a6f3696224 (diff) | |
download | iot-workshop-ndc-2018-284a60cf65523b3a868a58cf2edc97d190a95608.tar.gz iot-workshop-ndc-2018-284a60cf65523b3a868a58cf2edc97d190a95608.tar.bz2 iot-workshop-ndc-2018-284a60cf65523b3a868a58cf2edc97d190a95608.tar.xz iot-workshop-ndc-2018-284a60cf65523b3a868a58cf2edc97d190a95608.zip |
wip
Diffstat (limited to 'assignments')
-rw-r--r-- | assignments/Makefile | 2 | ||||
-rw-r--r-- | assignments/blink-a-led/blink-a-led.pdf | bin | 722602 -> 722602 bytes | |||
-rw-r--r-- | assignments/mqtt/mqtt.md | 5 | ||||
-rw-r--r-- | assignments/mqtt/mqtt.pdf | bin | 105234 -> 104784 bytes | |||
-rw-r--r-- | assignments/mqtt2/mqtt2.md | 10 | ||||
-rw-r--r-- | assignments/mqtt2/mqtt2.pdf | bin | 0 -> 51245 bytes | |||
-rw-r--r-- | assignments/mqtt3/mqtt3.md | 12 | ||||
-rw-r--r-- | assignments/mqtt3/mqtt3.pdf | bin | 0 -> 53509 bytes | |||
-rw-r--r-- | assignments/network/network.md | 7 | ||||
-rw-r--r-- | assignments/read-temperature/read-temperature.md | 4 | ||||
-rw-r--r-- | assignments/read-temperature/read-temperature.pdf | bin | 790129 -> 791810 bytes |
11 files changed, 36 insertions, 4 deletions
diff --git a/assignments/Makefile b/assignments/Makefile index 2f97a07..6d31568 100644 --- a/assignments/Makefile +++ b/assignments/Makefile @@ -2,6 +2,8 @@ AS = AS += blink-a-led AS += read-temperature AS += mqtt +AS += mqtt2 +AS += mqtt3 PDFS=$(foreach A,$(AS),$(A)/$(A).pdf) diff --git a/assignments/blink-a-led/blink-a-led.pdf b/assignments/blink-a-led/blink-a-led.pdf Binary files differindex 785547f..7efd91f 100644 --- a/assignments/blink-a-led/blink-a-led.pdf +++ b/assignments/blink-a-led/blink-a-led.pdf diff --git a/assignments/mqtt/mqtt.md b/assignments/mqtt/mqtt.md index e89e88c..f52eed3 100644 --- a/assignments/mqtt/mqtt.md +++ b/assignments/mqtt/mqtt.md @@ -11,9 +11,6 @@ Get aquainted with MQTT. 1. Connect to MQTT broker 1. Publish temperature -1. Implement last will to indicate online status -1. Implement subscription to reconfigure device - 1. Change temperature report interval ## Tips @@ -32,7 +29,7 @@ char *cStr = myString.c_str(); ## Bonus -**1:** Print the heap at regular intervals. +**1:** Print the heap free size at regular intervals. **2:** Implement min, max and average temperature over configured interval. diff --git a/assignments/mqtt/mqtt.pdf b/assignments/mqtt/mqtt.pdf Binary files differindex 4c578f9..35ecd0b 100644 --- a/assignments/mqtt/mqtt.pdf +++ b/assignments/mqtt/mqtt.pdf diff --git a/assignments/mqtt2/mqtt2.md b/assignments/mqtt2/mqtt2.md new file mode 100644 index 0000000..cfc623a --- /dev/null +++ b/assignments/mqtt2/mqtt2.md @@ -0,0 +1,10 @@ +# Assignment: MQTT + +## Goal + +Get to know will messages and retained messages. + +## Steps + +1. Implement last will to indicate online status +1. Retained message diff --git a/assignments/mqtt2/mqtt2.pdf b/assignments/mqtt2/mqtt2.pdf Binary files differnew file mode 100644 index 0000000..b34898e --- /dev/null +++ b/assignments/mqtt2/mqtt2.pdf diff --git a/assignments/mqtt3/mqtt3.md b/assignments/mqtt3/mqtt3.md new file mode 100644 index 0000000..2994e9a --- /dev/null +++ b/assignments/mqtt3/mqtt3.md @@ -0,0 +1,12 @@ +# Assignment: MQTT + +## Goal + +Connect two devices with MQTT + +## Steps + +1. Publish an alert +1. Subscribe to alert topic, blink a led when you get a message +1. Implement subscription to reconfigure device + 1. Change temperature report interval diff --git a/assignments/mqtt3/mqtt3.pdf b/assignments/mqtt3/mqtt3.pdf Binary files differnew file mode 100644 index 0000000..e156bcf --- /dev/null +++ b/assignments/mqtt3/mqtt3.pdf diff --git a/assignments/network/network.md b/assignments/network/network.md new file mode 100644 index 0000000..8e49b24 --- /dev/null +++ b/assignments/network/network.md @@ -0,0 +1,7 @@ +## Assignment: Network play time + +* Measure round trip time/latency. Measure UDP, TCP. Measure when the + packet size is greater than the MTU + +* Notice variations in RTT + diff --git a/assignments/read-temperature/read-temperature.md b/assignments/read-temperature/read-temperature.md index 2528b4a..1037ba9 100644 --- a/assignments/read-temperature/read-temperature.md +++ b/assignments/read-temperature/read-temperature.md @@ -6,3 +6,7 @@ Wire up this schematic on the bread board: ![](schematic/read-temperature_schem.pdf) ![](schematic/read-temperature_bb.pdf) + +## Step 2 + +* Change sampling frequency diff --git a/assignments/read-temperature/read-temperature.pdf b/assignments/read-temperature/read-temperature.pdf Binary files differindex 5a13441..d3f21d1 100644 --- a/assignments/read-temperature/read-temperature.pdf +++ b/assignments/read-temperature/read-temperature.pdf |