Last active
August 29, 2015 14:18
-
-
Save earltedly/2f3247d73a2ef8b0ebbb to your computer and use it in GitHub Desktop.
Pebble UUID in Swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let pebble = PBPebbleCentral.defaultCentral() | |
pebble.delegate = self | |
var uuidBytes = Array<UInt8>(count:16, repeatedValue:0) | |
let uuid = NSUUID(UUIDString: "acde6706-633f-404d-b99a-1fc57842593a") | |
uuid?.getUUIDBytes(&uuidBytes) | |
pebble.appUUID = NSData(bytes: &uuidBytes, length: uuidBytes.count) | |
watch = pebble.lastConnectedWatch() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment