0
Library to use for developing bluetooth manager class with C#
hello everyone, am trying to find a library that I will use for developing a bluetooth class that will let the programmer call the following functions from an object of the bluetooth device with C# //returns true or false if a device is connected or not bool isConnected(); //connects to a device with specified MAC address connect(string macAddress); //disconnects from a bluetooth device void disconnect //discovers nearby devices DiscoverNearbyDevices(); Which namespace can I use to create this dll library file, Thank You for your information
4 Respostas
+ 1
Hi,
Bluetooth is OS/device specific. I don't know if there is any cross platform library, but you're using C#, so, I'm guessing you are on a Windows, then you could try these:
https://docs.microsoft.com/en-us/uwp/api/windows.devices.bluetooth.bluetoothdevice?view=winrt-22000
https://www.btframework.com/bluetoothframework.htm#download
0
Hi Lona, what do you think of InTheHand nuget package for the same? Some site suggested that, is it good?
0
Hi,
Didn't try any of them. So, don't know if they're good or not. If I wanted to implement such interface then I'd look through all of them (the documentation) and try to find the best/easy/efficient match that'd help me to write the interface.
0
Okay, I am trying trying wrap all the methods in a single class, do the methods qualify the type to be a Bluetooth client?