コード例 #1
0
        //----
        private BluetoothDeviceInfo Create2_FromInquiry_NotConnected()
        {
            BluetoothDeviceInfo bdi = new BluetoothDeviceInfo(WidcommBluetoothDeviceInfo.CreateFromHandleDeviceResponded(
                                                                  WidcommUtils.FromBluetoothAddress(Addr2), name2Bytes, devClass2Bytes, false, m_factory));

            return(bdi);
        }
コード例 #2
0
        //----
        private BluetoothDeviceInfo Create1_FromInquiry_Connected()
        {
            BluetoothDeviceInfo bdi = new BluetoothDeviceInfo(WidcommBluetoothDeviceInfo.CreateFromHandleDeviceResponded(
                                                                  WidcommUtils.FromBluetoothAddress(Addr1), name1Bytes, devClass1Bytes, true, m_factory));

            return(bdi);
        }
コード例 #3
0
        //----
        private BluetoothDeviceInfo Create2_FromStoredRemoteDeviceInfo_NotConnectedPairedSetTrue()
        {
            REM_DEV_INFO rdi;

            rdi.bda         = addr2BigendianBytes;
            rdi.b_connected = false;
            rdi.b_paired    = true;
            rdi.bd_name     = name2Bytes;
            rdi.dev_class   = devClass2Bytes;
            BluetoothDeviceInfo bdi = new BluetoothDeviceInfo(WidcommBluetoothDeviceInfo.CreateFromStoredRemoteDeviceInfo(
                                                                  rdi, m_factory));

            return(bdi);
        }
コード例 #4
0
        //----
        private BluetoothDeviceInfo Create1_FromAddress()
        {
            BluetoothDeviceInfo bdi = new BluetoothDeviceInfo(WidcommBluetoothDeviceInfo.CreateFromGivenAddressNoLookup(Addr1, m_factory));

            return(bdi);
        }