I have to create a Windows 10 program that connects to a Polar OH1 device. The goal is that with a push of a button, we can connect to the Bluetooth LE device and write the real-time heart rate data to a csv file on the Windows 10 computer. I plan on doing this in C#, and ideally as a Windows Console Application.
However, this needs to be done without a user interface. From what I've searched, the Windows Bluetooth GATT APIs need a UI thread in order to connect to a Bluetooth LE device.
Is there a way to do what I need to do as a console application?