From 284a60cf65523b3a868a58cf2edc97d190a95608 Mon Sep 17 00:00:00 2001
From: Trygve Laugstøl <trygvis@inamo.no>
Date: Fri, 27 Apr 2018 00:39:19 +0200
Subject: wip

---
 assignments/Makefile                              |   2 ++
 assignments/blink-a-led/blink-a-led.pdf           | Bin 722602 -> 722602 bytes
 assignments/mqtt/mqtt.md                          |   5 +----
 assignments/mqtt/mqtt.pdf                         | Bin 105234 -> 104784 bytes
 assignments/mqtt2/mqtt2.md                        |  10 ++++++++++
 assignments/mqtt2/mqtt2.pdf                       | Bin 0 -> 51245 bytes
 assignments/mqtt3/mqtt3.md                        |  12 ++++++++++++
 assignments/mqtt3/mqtt3.pdf                       | Bin 0 -> 53509 bytes
 assignments/network/network.md                    |   7 +++++++
 assignments/read-temperature/read-temperature.md  |   4 ++++
 assignments/read-temperature/read-temperature.pdf | Bin 790129 -> 791810 bytes
 11 files changed, 36 insertions(+), 4 deletions(-)
 create mode 100644 assignments/mqtt2/mqtt2.md
 create mode 100644 assignments/mqtt2/mqtt2.pdf
 create mode 100644 assignments/mqtt3/mqtt3.md
 create mode 100644 assignments/mqtt3/mqtt3.pdf
 create mode 100644 assignments/network/network.md

(limited to 'assignments')

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
index 785547f..7efd91f 100644
Binary files a/assignments/blink-a-led/blink-a-led.pdf and b/assignments/blink-a-led/blink-a-led.pdf differ
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
index 4c578f9..35ecd0b 100644
Binary files a/assignments/mqtt/mqtt.pdf and b/assignments/mqtt/mqtt.pdf differ
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
new file mode 100644
index 0000000..b34898e
Binary files /dev/null and b/assignments/mqtt2/mqtt2.pdf differ
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
new file mode 100644
index 0000000..e156bcf
Binary files /dev/null and b/assignments/mqtt3/mqtt3.pdf differ
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
index 5a13441..d3f21d1 100644
Binary files a/assignments/read-temperature/read-temperature.pdf and b/assignments/read-temperature/read-temperature.pdf differ
-- 
cgit v1.2.3