# Show & Tell: Internet of Things ###### tags: `Show & Tell` --- ![](https://imgs.xkcd.com/comics/smart_home_security.png) --- ## Anspruchs-Realitäts-Diskrepanz ![](/uploads/upload_3cdf48baec4fdc39d88ecd60fc886722.png) --- ## At least, you've tried ![](/uploads/upload_5b81a451f421aecd84e25d32ee38f396.png) --- ## M/W/D ![](/uploads/upload_5cb071be6092b38a7679da46d9a599d2.png) --- ## A closer look ![](/uploads/upload_9d208aa9d5feb5ee00ba16beb0e2f941.png) --- ## Mache mir die Welt wie sie mir gefällt ![](/uploads/upload_ba1f078d91321794d597ff722b283a09.png) --- ## Choose your Weapon ![](/uploads/upload_6222fd55621a995d2f716c31b3d052fa.png) --- ## MQTT Insights ``` conn = Mqtt("example-" + GetMAC(), clean=true) conn.setLastWill("maglab/space/light/status", "offline", persist=true) conn.onConnect(func() { con.publish("maglab/space/light/status", "online", persist=true) conn.subscribe("maglab/space/light/relay/+/set", func(msg) { light = get_light_from_topic(msg.topic) if msg.payload == "ON" { light.on() conn.publish("maglab/space/light/relay/" + light.id, "1", persist=true) } else { light.off() conn.publish("maglab/space/light/relay/" + light.id, "0", persist=true) } }) }) while true { conn.connect("mqtt://mqtt.maglab.space/") } ```
{"slideOptions":{"transition":"fade","theme":"white"}}