Skip to content

Will dotnet team consider something about Bluetooth? e.g. Microsoft.Extension.Bluetooth ? #95542

Answered by jkotas
wsy asked this question in General
Discussion options

You must be logged in to vote

developers will be able to utilize Bluetooth capability without having to use UWP or MAUI.

You do not have to use UWP or MAUI to use Windows SDK.

For example, this console app is going to enumerate all devices on the system:

using Windows.Devices.Enumeration;

var all = await DeviceInformation.FindAllAsync();
foreach (var device in all)
{
    Console.WriteLine(device.Name);
}

(Make sure to have -windows target framework in your .csproj file. Like <TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>.)

I meant it should ideally be like SerialPort .. same API same package for all platforms.

https://github.com/dotnet/iot is probably the best repo in the dotnet org to discuss a d…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
2 replies
@wsy
Comment options

@KeterSCP
Comment options

Comment options

You must be logged in to vote
7 replies
@danmoseley
Comment options

@wsy
Comment options

@danmoseley
Comment options

@jkotas
Comment options

jkotas Dec 8, 2023
Collaborator

Answer selected by danmoseley
@wsy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants