 public class EPLCentralManager: NSObject, CBCentralManagerDelegate {
     // MARK: -
     // MARK: Private variables
+    private let log = XCGLogger.defaultInstance()
     private var cbCentralManager: CBCentralManager?
     private let centralQueue = dispatch_queue_create("epl.ble.central.main", DISPATCH_QUEUE_SERIAL)
     private var _ble_ready: Bool = false
     private var scanOption:Dictionary<String, AnyObject> = [:]
-    
-    private var scanTimer:NSTimer?
-    
+
     // MARK: -
     // MARK: Internal variables
     

    
    // MARK: -
    // MARK: Internal Interface
    @objc func scanTimeout() {
        println("timer stop")
        //        self.cbCentralManager.stopScan()
        delegate?.afterScanIsDone(self)
    }
    
    // MARK: -
    // MARK: Public Interface
    public override init() {

    }
    
    public func centralManager(central: CBCentralManager!, didRetrieveConnectedPeripherals peripherals: [AnyObject]!) {
        log.debug("didRetrieveConnected")
        if let ps = peripherals {
            for p in ps {
                let p = p as! CBPeripheral
