コード例 #1
0
        public BTTransferSendThread(BluetoothSocket socket, XamarinBluetooth a)
        {
            mmSocket = socket;
            _adapter = a;

            // Get the BluetoothSocket input and output streams
            mmOutStream = socket.OutputStream;
        }
コード例 #2
0
        public BTTransferRecieveThread(BluetoothSocket socket, XamarinBluetooth a)
        {
            mmSocket = socket;
            _adapter = a;
            Stream tmpIn = null;

            // Get the BluetoothSocket input and output streams
            mmInStream = socket.InputStream;
        }
コード例 #3
0
ファイル: BTAcceptThread.cs プロジェクト: sorke/GridDominance
        public BTAcceptThread(XamarinBluetooth a)
        {
            _adapter = a;
            BluetoothServerSocket tmp = null;

            // Create a new listening server socket

            tmp = _adapter.Adapter.ListenUsingRfcommWithServiceRecord(XamarinBluetooth.NAME, XamarinBluetooth.UUID);

            mmServerSocket = tmp;
        }
コード例 #4
0
        public BTConnectThread(BluetoothDevice device, XamarinBluetooth a)
        {
            mmDevice = device;
            _adapter = a;
            BluetoothSocket tmp = null;

            // Get a BluetoothSocket for a connection with the
            // given BluetoothDevice
            tmp = device.CreateRfcommSocketToServiceRecord(XamarinBluetooth.UUID);

            mmSocket = tmp;
        }
コード例 #5
0
 public BTScanReciever(XamarinBluetooth a)
 {
     _adapter = a;
 }