Cirrious.MvvmCross.Plugins.Sphero.HackFileShare.NonAwaitingConnectedSpheroRunner.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
        public void Start()
        {
            var receiveThread = new Thread(ReceiveResponses);
            var sendThread = new Thread(SendCommmands);
            receiveThread.Start();
            sendThread.Start();
        }

Usage Example

Example #1
0
 public ConnectedSphero(BluetoothDevice bluetoothDevice, BluetoothSocket socket)
     : base(bluetoothDevice)
 {
     _spheroSocketWrapper = new StreamSocketWrapper(socket);
     _runner = new NonAwaitingConnectedSpheroRunner(_spheroSocketWrapper);
     _runner.Disconnected += (sender, args) => RaiseDisconnected();
     _runner.Start();
 }