Skip to content

Instantly share code, notes, and snippets.

View helloworldsmart's full-sized avatar
😀
I may be slow to respond.

MichaelChen helloworldsmart

😀
I may be slow to respond.
  • Mars
View GitHub Profile
import UIKit
import CoreBluetooth
class ViewController: UIViewController, CBCentralManagerDelegate, CBPeripheralDelegate {
let centralManager:CBCentralManager!
var connectingPeripheral:CBPeripheral!
required init(coder aDecoder: NSCoder) {