Exemplo n.º 1
0
        //--------
        public bool RemoveDeviceFind_OnDefaultAdapter(BluetoothAddress device)
        {
            BluezDbusInterface.Adapter a;
            ObjectPath devicePath;

            BluezDbusInterface.Device d = FindDevice_OnDefaultAdapter(device, out devicePath, out a);
            if (d == null)
            {
                return(false);
            }
            a.RemoveDevice(devicePath);
            return(true);
        }
Exemplo n.º 2
0
        public DbusPropertyDictionary FindDeviceProperties_OnDefaultAdapter(
            BluetoothAddress address, out ObjectPath objectPath)
        {
            BluezDbusInterface.Device d = FindDevice_OnDefaultAdapter(address, out objectPath);
            if (d == null)
            {
                return(null);
            }
            var deviceDict = d.GetProperties();
            var addrStr    = (string)deviceDict["Address"];

            Console.WriteLine("  GDP got addrStr: " + addrStr);
            return(deviceDict);
        }