Skip to content

mthistle/SendHapticSwift

Repository files navigation

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 a Swift 2 sample, see: https://github.com/mthistle/MicrosoftBandKit_iOS-Swift2/tree/master/BandSensor/BSwiftHeartRate

SendHapticSwift

A sample Microsoft Band Kit SDK project in Swift that sends a haptic (vibration) to the paired band.

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

About the Code

I have wrapped the MSB classes with a BandManager class to reduce some boilerplate as I write apps with MSB. The BandManager is demonstrated being used to connect and then send a haptic to the band.

About

A sample Microsoft Band Kit SDK project in Swift that sends a haptic (vibration) to the paired band.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published