angelsix / blueberry

The new diabetes app
106 stars 33 forks source link

Bluetooth discovery and pairing alone #21

Open charlamenan opened 4 years ago

charlamenan commented 4 years ago

Hi ,

I have been looking for a solution in python for Bluetooth headset discovery and pairing . Could someone help extract only discovery and pairing part of code ,so that i can use this .exe in my python solution .

It would be better if i can have two .exe ,one to output list of discovered bluetooth device and another .exe that will take a Bluetooth name/address as an input and connect to it .

Thanks in Advance . charlamenan

ibrahimhuycn commented 4 years ago

I do not know how to call methods in CLR libraries from python, but I believe you will be able to get a simple C# library solution working by referring to the playlist where this is explained.

Playlist: The £100,000 Open Source Project

The specific videos you might need to checkout Discovering Bluetooth Devices BLE in C# and .Net Core Reading Bluetooth LE Device Details C# WPF Pairing Bluetooth Devices in Windows C#

Hope this helps.

charlamenan commented 4 years ago

Thanks for the reply .I have watched those before .I am quite new to c# .I just downloaded all code from here .I want to use it winodws os ,looks like the code has something to do with andriod SDK and mobile as i get this error .

Error The project Blueberry.Mobile.AndroidApp is missing Android SDKs required for building. Double-click on this message and follow the prompts to install them.

Also ,i want to scan and pair bluetooth headset ,i do not know if it is bluetooth LE device . Should this work for any bluetooth device ,or are there any difference between bluetoothLE and normal bluetooth scanning and pairing code