                        parameters: LowEnergyCommand.SetScanParametersParameter = .init(),
                        commandTimeout timeout: Int = 1000,
                        shouldContinueScanning: () -> (Bool),
-                       foundDevice: () -> ()) throws {
+                       foundDevice: (String) -> ()) throws {
         
         // set parameters first
         try deviceRequest(parameters, timeout: timeout)

                               shouldContinueScanning: shouldContinueScanning,
                               foundDevice: foundDevice)
    }
}

/// Poll for scanned devices
internal func PollScannedDevices(_ deviceDescriptor: CInt,
                                 duration: TimeInterval,
                                 shouldContinueScanning: () -> (Bool),
                                 foundDevice: () -> ()) throws {
    
    var eventBuffer = [UInt8](repeating: 0, count: HCI.maximumEventSize)
    

        return error
    }
    
    var results = [String]()
    
    // poll until timeout
    while shouldContinueScanning() {
        
        var actualBytesRead = 0
        
