wiimote - 32Feet API with C# .NET - Stuck -


I am trying to add my Wiimotes using the 32Feet API and I have been successful in doing so with the following code.

var Client = New InTheHand.Net.Sockets.BluetoothClient (); Var device = client.DiscoverDevices (); Var calculation = (Select devices d.DeviceName.Contains ("Nintendo") d) .ount (); (Devices device in device) {if (device.DeviceName.Contains ("Nintendo")) {if (device.InstalledServices.Length & gt; 0) {InTheHand.Net.Bluetooth.BluetoothSecurity.RemoveDevice (device.DeviceAddress); // When it is being removed from the thread. Sleep (2000); } Device.SetServiceState (InTheHand.Net.Bluetooth.BluetoothService.HumanInterfaceDevice, Incorrect); Device.SetServiceState (InTheHand.Net.Bluetooth.BluetoothService.HumanInterfaceDevice, true); // I'm confused here! What to do to read from the stream? }}

The line I have commented on is "I'm confused here ... ..." it's messy all the time. Can anyone help me to connect all the vimots one by one and then to read from their stream?

"post-text" itemprop = "text">

Do not attempt to change the wheel again, use an existing library:


Comments