                        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)
    

            }
        }
        
        //let headerData = Array(eventBuffer[1 ..< 1 + HCIEventHeader.length])
        let eventData = Array(eventBuffer[(1 + HCIEventHeader.length) ..< actualBytesRead])
        
        guard let meta = HCIGeneralEvent.LowEnergyMetaParameter(byteValue: eventData),
            let lowEnergyEvent = LowEnergyEvent(rawValue: meta.subevent)
            else { throw AdapterError.GarbageResponse(Data(eventData)) }
        
        // only want adv report
        guard lowEnergyEvent == .advertisingReport
            else { continue }
        
        
    }
    
    return results
