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

17th Apr 2022, 11:44 AM
Timothy Njiru
Timothy Njiru - avatar
4 Answers
+ 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
17th Apr 2022, 12:31 PM
lona
0
Hi Lona, what do you think of InTheHand nuget package for the same? Some site suggested that, is it good?
17th Apr 2022, 12:49 PM
Timothy Njiru
Timothy Njiru - avatar
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.
17th Apr 2022, 12:57 PM
lona
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?
17th Apr 2022, 12:59 PM
Timothy Njiru
Timothy Njiru - avatar