public Task ConnectAsync()
 {
     return Task.Run(() =>
     {
         Android.Bluetooth.BluetoothSocket bluetoothSocket;
         bluetoothSocket = DroidDevice.CreateInsecureRfcommSocketToServiceRecord(UUID.FromString(ServiceId.ToString()));
         //bluetoothSocket = DroidDevice.CreateInsecureRfcommSocketToServiceRecord(UUID.FromString("4fb996ea-01dc-466c-8b95-9a018c289cef"));
         bluetoothSocket.Connect();
         RfcommConnection = new RfcommConnection(Device, bluetoothSocket);
     });
 }
 public Task RunAcceptTask()
 {
     return(Task.Run(() =>
     {
         while (true)
         {
             var bluetoothSocket = ServerSocket.Accept();
             if (bluetoothSocket != null)
             {
                 var rxDevice = BluetoothDeviceWrapper.GetBluetoothDeviceFromDroidDevice(BluetoothManager as BluetoothManager, bluetoothSocket.RemoteDevice);
                 RfcommConnection rfcommConnection = new RfcommConnection(rxDevice, bluetoothSocket);
                 _Connections.Add(rfcommConnection);
                 OnConnectionReceived?.Invoke(this, rfcommConnection);
             }
         }
     }));
 }