mthistle / BandSensorSwift

Swift version of the Microsoft Band Kit sample app BandSensor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

THIS IS An OLD SAMPLE FOR Swift 1.2 and Xcode 6.3 Beta - You can use this as a reference but the code is out of date. For Swift 2 samples, see: https://github.com/mthistle/MicrosoftBandKit_iOS-Swift2/

BandSensorSwift

Swift version of the Microsoft Band Kit sample app BandSensor

This is a port of the BandSensor example from the Microsoft Band Kit SDK for iOS samples. The SDK can be found at http://developer.microsoftband.com/

Dependencies

Uses the Microsoft Band Kit (MSB) for iOS (included). You can get the latest version from: http://developer.microsoftband.com/ Demonstrates use of MSB with Swift. Written with Swift 1.2 and Xcode 6.3 Beta.

Requires a Microsoft Band paired with your iPhone (there is no simulator, you need a physical band).

##Using

Download, build and run.

Authors

Mark Thistle, http://droolfactory.blogspot.com

About the Code

This is a straight port. The only real difference is the use of a dispatch_async with block instead of using performSelector to handle the sensor unsubscribe after 60 seconds.

About

Swift version of the Microsoft Band Kit sample app BandSensor

License:MIT License


Languages

Language:Objective-C 90.9%Language:C++ 5.4%Language:Swift 3.7%