Controlling tons of different IoT devices with Swift
summary
A Swift SDK controls roughly 40 different ZigBee device types using a protocol‑driven request model with associated types called Requestable protocol and Reactive patterns via ReactiveSwift. Playgrounds in Xcode 10 host live demos and integration tests, the live demo works but remains experimental. Every network call can emit a curl output logging line for debugging, responses decode into model objects, services are easily mocked for tests, there are 100+ tests now and an estimated 600 tests needed to cover all device rules.
AI-written summary · about
chapters (12)
- 0:00Introduction to IoT with Swift
- 1:04About the speaker and playgrounds
- 5:22Tips for using Swift playgrounds
- 10:25Building an IoT SDK with playgrounds
- 15:33SDK design and logging
- 18:48Refactoring and protocols
- 24:14Mocking and testing SDKs
- 25:22Live demo of IoT app
- 28:42Rules for IoT device control
- 31:08Automated testing for IoT rules
- 35:28Testing color control bulbs
- 40:49Key takeaways and Q&A
related talks
53mSwift: New Paradigms for iOS Development
29mControlling Bluetooth Mesh Networks with Swift Applications
57mCatching up with Swift
37mBeyond Xcode
43mSecond degree asyncronousity - learnings from developing iOS + IoT apps
38mSpark Your Creativity: The Power of iPad Playgrounds
53mRefactor Your Way Forward
37mWriting Swift, while living on Objective-C
