 import CoreBluetooth
 
 class CentralManager: CBCentralManager, CBCentralManagerDelegate {
-    private var nexturnObject = NexturnObject()
+    private var nexturnObjectArray = [NexturnObject]()
     
     override init(delegate: CBCentralManagerDelegate!, queue: dispatch_queue_t!, options: [NSObject : AnyObject]!) {
         super.init(delegate: delegate, queue: queue, options: options)

    // ペリフェラル発見時に呼ばれる
    func centralManager(central: CBCentralManager!, didDiscoverPeripheral peripheral: CBPeripheral!, advertisementData: [NSObject : AnyObject]!, RSSI: NSNumber!) {
        switch peripheral.name {
        case nexturnObject.kNexturnName:
            peripheral.delegate = nexturnObject
            nexturnObject.peripheral = peripheral
            connectPeripheral(nexturnObject.peripheral, options: nil)
        default:
            break
        }

    // ペリフェラルと接続後に呼ばれる
    func centralManager(central: CBCentralManager!, didConnectPeripheral peripheral: CBPeripheral!) {
        switch peripheral.name {
        case NexturnObject.Property.kName!:
            let UUID = CBUUID(string: NexturnObject.Property.kLEDServiceUUID)
            nexturnObjectArray.last?.peripheral?.discoverServices([UUID])
        default:
            break
        }
