This project has moved. For the latest updates, please go here.

Listening To Connection From HealthCare Device

Topics: Bluetooth - Microsoft
Jul 3, 2013 at 2:59 AM
Edited Jul 3, 2013 at 3:20 AM
I am currently developing a WPF project. I am trying to receive data from an OMRON device. The device support two profiles, Continua (HealthDeviceSource) and SDP. I'm hoping to only use Continua.

Here's what I've tried.
bool connected = false;

while (!connected)
            connected = new BluetoothDeviceInfo(new BluetoothAddress(byt)).Connected; //Works, only proceed when true.

var listener = new BluetoothListener(BluetoothService.HealthDeviceSource);
            bool booll = false;
            while (!booll)
                        booll = listener.Pending(); //Always false, why is that so?
            //If I do this instead, it just stucks here.
            //var client = listener.AcceptBluetoothClient();
catch (Exception err) { MessageBox(err.Message); }
Any help?