0

I need to develop an app, which has to connect to a bluetooth module, how can I do this?

1
  • I dont know if you still need to information but for WP8 a Nokia Engineer (Justin Angel) has release a Bluetooth SDK [link] (metroeeg.codeplex.com/documentation)
    – Damien
    Commented Jan 25, 2013 at 16:30

5 Answers 5

5

There is no way to get access to Bluetooth in current versions of WP7 API.

3
  • And there is no any undocument API. Thank you. Commented Apr 10, 2012 at 15:18
  • 1
    There is actually a way to work with Bluetooth. And this way is only available for OEM and mobile operators. Commented Jul 1, 2012 at 13:41
  • how is that possible ? Do we need external library or use our own btstack ?
    – Ahmed
    Commented Jul 1, 2012 at 20:22
2

you can use the Launcher “ConnectionSettingsTask” to achieve it.

Just use the ConnectionSettingsType to Bluetooth and call the show method of the ConnectionSettingsTask . This will Launch the Bluetooth Settings Window and lets the user to change the Bluetooth settings or even enable or disable the Bluetooth.

You use the Launcher , use the namespace Microsoft.Phone.Tasks;

private void LaunchBluetoothSettingsForm()
    {
       ConnectionSettingsTask connectionSettingsTask = new ConnectionSettingsTask();
       connectionSettingsTask.ConnectionSettingsType = ConnectionSettingsType.Bluetooth;
       connectionSettingsTask.Show();
    }
2

I've develop a application for send and receive image/video/audio files for Windows Phone, BI submit this application on microsoft store, They rejected ma application. they said that this application allow users to send copyright protected data, so they can't publish this kind of application.

2

As of today we developers don't have access to the bluetooth module, hopefully in WP8 we will have access to it through the SDK.

0

Use this codes for your button event. You can also enable Wifi and even airplane mode with this codes. Just replace the word Blutooth to Wifi or airplane mode.

private void Blutooth_Click(object sender, EventArgs e)
{
   ConnectionSettingsTask Task = new ConnectionSettingsTask();
   Task.ConnectionSettingsType = ConnectionSettingsType.Bluetooth;
   Task.Show();
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.