 
 /// Poll for scanned devices
 internal func PollScannedDevices(_ deviceDescriptor: CInt,
-                                 duration: TimeInterval,
                                  shouldContinueScanning: () -> (Bool),
                                  foundDevice: (Adapter.LowEnergyScannedDevice) -> ()) throws {
     

        
        // poll for scanned devices
        try PollScannedDevices(internalSocket,
                               duration: duration,
                               shouldContinueScanning: shouldContinueScanning,
                               foundDevice: foundDevice)
    }

        
        var foundDevices = [LowEnergyScannedDevice]()
        
        try lowEnergyScan(filterDuplicates: filterDuplicates,
                                 parameters: parameters,
                                 commandTimeout: timeout,
                                 shouldContinueScanning: { Date() < endDate },
