How to resolve 32feet.NET error in Unity while pairing with an external bluetooth device ?

928 Views Asked by At

I do not know the problem here. I am using a bluetooth device for connection to Unity. I have used visual studio to code. My problem is that my code works fine on Visual Studio. But when I run the same program on Unity, it starts giving me this error:

Rethrow as PlatformNotSupportedException: 32feet.NET does not support the Bluetooth stack on this device. InTheHand.Net.Bluetooth.Msft.SocketBluetoothClient..ctor (InTheHand.Net.Bluetooth.Factory.BluetoothFactory fcty) (at :0)

Does anyone know how to resolve this issue ? It would be a lot of help.

Thanks

1

There are 1 best solutions below

6
On

The system.net.socket class work a little different in mono compared to the standard .net implementation. here is a post about it. https://peterfoot.net/2018/03/22/bluetooth-from-unity/

How do you connect to the device, maybe there is another aproach?