Ejemplo n.º 1
0
        public BTTransferSendThread(BluetoothSocket socket, XamarinBluetooth a)
        {
            mmSocket = socket;
            _adapter = a;

            // Get the BluetoothSocket input and output streams
            mmOutStream = socket.OutputStream;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 5
0
 public BTScanReciever(XamarinBluetooth a)
 {
     _adapter = a;
 }