         }
         
         self.log?("Scanning...")
+        
         self.internalManager.scanForPeripherals(withServices: nil, options: options)
         
         // sleep until scan finishes

    
    public func notify(_ notification: ((Data) -> ())?,
                       for characteristic: Characteristic<Peripheral>,
                       timeout: TimeInterval = 30) throws {
        
        guard state == .poweredOn
            else { throw DarwinCentralError.invalidState(state) }

    public func writeValue(_ data: Data,
                           for characteristic: Characteristic<Peripheral>,
                           withResponse: Bool = true,
                           timeout: TimeInterval = .gattDefaultTimeout) throws {
        
        guard state == .poweredOn
            else { throw DarwinCentralError.invalidState(state) }
