void adapter_DeviceFound(string address, IDictionary <string, object> properties) { Console.WriteLine("xAdapter_DeviceFound addr: {0}, prop.Count: {1}", address, properties.Count); if (!_livePropDumped) { _livePropDumped = true; BluezUtils.DumpKeys(properties); // "keys: Address, Class, Icon, RSSI, Name, Alias, LegacyPairing, Paired" } var bdi = BluezDeviceInfo.CreateFromInquiryLive(_fcty, properties); LiveDisco(bdi); }
internal static BluezDeviceInfo CreateFromStored(BluezFactory fcty, ObjectPath objectPath, BluetoothAddress address, IDictionary <string, object> dbusDeviceDict) { var bdi = new BluezDeviceInfo(fcty, address); if (!_propDumped) { _propDumped = true; BluezUtils.DumpKeys(dbusDeviceDict); // "keys: Address, Name, Alias, Class, Icon, Paired, Trusted, Connected, UUIDs, Adapter" } SetProperties(objectPath, bdi, dbusDeviceDict); return(bdi); }