BTdump 1.0.0

dotnet add package BTdump --version 1.0.0                
NuGet\Install-Package BTdump -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BTdump" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BTdump --version 1.0.0                
#r "nuget: BTdump, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BTdump as a Cake Addin
#addin nuget:?package=BTdump&version=1.0.0

// Install BTdump as a Cake Tool
#tool nuget:?package=BTdump&version=1.0.0                

This Nuget can be used to make "debug dumps" of Bluetooth devices, and also has some helpers.

BThelpers

All methods are static (shared), so can be called without instantiation.

Async Function IsBTavailableAsync() As Task(Of Integer)
Async Function TrySwitchBTAsync(bOn As Boolean) As Task(Of Boolean)

Rest of methods returns object or NULL when error occurs. In this case, error message is set:

errorMessage As String = ""

Async Function GetDeviceAsync(deviceMAC As ULong) As Task(Of BluetoothLEDevice)

Async Function GetServiceAsync(oDevice As BluetoothLEDevice, serviceGuid As String) As Task(Of GattDeviceService)
Async Function GetDeviceServiceAsync(deviceMAC As ULong, serviceGuid As String) As Task(Of GattDeviceService)

Async Function GetCharacteristicAsync(service As GattDeviceService, charGuid As String) As Task(Of GattCharacteristic)
Async Function GetServiceCharacteristicAsync(oDevice As BluetoothLEDevice, serviceGuid As String, charGuid As String) As Task(Of GattCharacteristic)
Async Function GetDeviceServiceCharacteristicAsync(deviceMAC As ULong, serviceGuid As String, charGuid As String) As Task(Of GattCharacteristic)

BTextensions

All extensions are meant to return debug string, with dumped object data.

ToDebugString(ByVal oBuf As Windows.Storage.Streams.IBuffer, iMaxLen As Integer)
ToDebugString(ByVal oBuf As Windows.Storage.Streams.IBuffer)** // same as above, but iMaxLen is set to 16
ToDebugString(ByVal oAdv As BluetoothLEAdvertisement)
ToDebugStringAsync(ByVal oDescriptor As GattDescriptor)
ToDebugString(ByVal oProp As GattCharacteristicProperties)
ToDebugStringAsync(ByVal oChar As GattCharacteristic)
ToDebusStringAsync(ByVal oServ As GattDeviceService)
ToDebusStringAsync(ByVal oDevice As BluetoothLEDevice)**

** means DefaultOverload, the one and only visible in JavaScript.

This Nuget uses my DotNetExtensions (for dumping GUIDs). I moved dumping GUIDs to DotNetExtensions, as DotNetExtensions is universal (uses .Net Standard 1.4), and this Nuget is only for UWP.

Product Compatible and additional computed target framework versions.
Universal Windows Platform uap was computed.  uap10.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 224 2/24/2023

Initial release.