BgApiDriver 2.0.1

dotnet add package BgApiDriver --version 2.0.1
                    
NuGet\Install-Package BgApiDriver -Version 2.0.1
                    
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="BgApiDriver" Version="2.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BgApiDriver" Version="2.0.1" />
                    
Directory.Packages.props
<PackageReference Include="BgApiDriver" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BgApiDriver --version 2.0.1
                    
#r "nuget: BgApiDriver, 2.0.1"
                    
#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.
#:package BgApiDriver@2.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BgApiDriver&version=2.0.1
                    
Install as a Cake Addin
#tool nuget:?package=BgApiDriver&version=2.0.1
                    
Install as a Cake Tool

BleDriver.NET

C# bindings for Bluegiga BLED112 or BLE112 Bluetooth Low Energy USB Dongle.

This project generates C# api bindings for the Bluegiga BLED112 by parsing the bleapi XML specification file. The user is required to have the Bluegiga Bluetooth Smart SDK (available from http://techforum.bluegiga.com/BLED112). This project is not associated with Bluegiga.

Visual Studio Code configuration

  • Install the following extensions:
    • C# Dev Kit, to run the unit tests
    • Python, to generate new API classes when a new API .xml is available from Bluegiga

Generating the API

Steps:

  • Open Visual Studio Code in the root of the repository
  • Open the Run & Debug window
  • Run "Python Debugger: Generate BG API", this will update the generated C# class ./src/BgApi.g.cs

Running Unit Tests

Steps:

  • Plug in your BLED112 dongle into a free USB socket
  • Update the COM port in CommandTests.cs according to your Device Manager, there should be a "Bluegiga Bluetooth Low Energy (COMx)" entry, e.g. COM9

from the command line:

  • cd ./tests
  • dotnet test

from Visual Studio Code:

  • Open the Test Explorer window using Ctrl+Shift+P and select "Testing: Focus on Test Explorer View"
  • Then "Run Tests", "Debug Tests" or "Run Tests with Coverage"
  • "Show Output" shows the console logs during test case execution

Result:

Passed!  - Failed:     0, Passed:     4, Skipped:     0, Total:     4, Duration: 25 s - BgApiDriver.Tests.dll (net8.0)

Other bindings and GitHub projects

More at https://github.com/search?q=bluegiga+OR+BLED112&type=repositories

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
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
2.0.1 112 10/24/2024
2.0.0 79 10/23/2024
1.0.0-CI00001 1,203 3/27/2015
1.0.0-CI00000 1,036 3/27/2015