Skip to content

Instantly share code, notes, and snippets.

@z3rg
z3rg / gist:468677242a43a4c7e8dd
Created March 28, 2016 03:56 — forked from nolili/gist:a583ea045dafafebb17f
Heart Rate Monitor Example(Swift)
import UIKit
import CoreBluetooth
class ViewController: UIViewController, CBCentralManagerDelegate, CBPeripheralDelegate {
let centralManager:CBCentralManager!
var connectingPeripheral:CBPeripheral!
required init(coder aDecoder: NSCoder) {