This is another post in a series on writing MQTT clients using Swift on Linux. In this post we'll look at the MQTT Last Will and Testament message and how it can be used to notify other MQTT clients of abnormal disconnects.
You're interested in Swift 3.0 on a Raspberry Pi, but maybe you want to try your hand at building it too? This tutorial is a step-by-step set of instructions on how you can compile the latest and greatest Swift on your Pi 3.
Building Swift applications on a Raspberry Pi 2 or 3 has never been easier! We'll show to get your Pi ready for Swift and how to download and run Swift 3.0 with support for Foundation and Swift Package Manager.