BgApiDriver 2.0.1
dotnet add package BgApiDriver --version 2.0.1
NuGet\Install-Package BgApiDriver -Version 2.0.1
<PackageReference Include="BgApiDriver" Version="2.0.1" />
<PackageVersion Include="BgApiDriver" Version="2.0.1" />
<PackageReference Include="BgApiDriver" />
paket add BgApiDriver --version 2.0.1
#r "nuget: BgApiDriver, 2.0.1"
#:package BgApiDriver@2.0.1
#addin nuget:?package=BgApiDriver&version=2.0.1
#tool nuget:?package=BgApiDriver&version=2.0.1
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
- https://github.com/petermoz/blepy: python
- https://github.com/jrowberg/bglib: C#, python, C++
- https://github.com/xloem/bglibpp: C++
- https://github.com/mjbrown/bgapi: python
More at https://github.com/search?q=bluegiga+OR+BLED112&type=repositories
Product | Versions 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. |
-
net6.0
- System.IO.Ports (>= 6.0.0)
-
net8.0
- System.IO.Ports (>= 8.0.0)
-
net9.0
- System.IO.Ports (>= 9.0.0-rc.2.24473.5)
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 |