             }
         }
         
-        let headerData = Array(eventBuffer[1 ..< 1 + HCIEventHeader.length])
+        //let headerData = Array(eventBuffer[1 ..< 1 + HCIEventHeader.length])
         let eventData = Array(eventBuffer[(1 + HCIEventHeader.length) ..< actualBytesRead])
         
-        guard let meta = HCIGeneralEvent.LowEnergyMeta(bytes: )
-            else { return  }
+        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

                               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
        
