Skip to content

Commit

Permalink
Cleanup BlueGiga examples (#166)
Browse files Browse the repository at this point in the history
- nested BlueGigaBLE-project in src like the other projects
- no need for different calls to InitHostAndDiscoverAsync()

#165
  • Loading branch information
dkurok authored Apr 9, 2021
1 parent e788c20 commit b88dba3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/SharpBrick.PoweredUp.Examples/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,8 @@ static async Task Main(string[] args)
example = new Example.ExampleColorDistanceSensor();

// NOTE: Examples are programmed object oriented style. Base class implements methods Configure, DiscoverAsync and ExecuteAsync to be overwriten on demand.
// this uses the WinRT-bluetooth-implementation by default
await example.InitHostAndDiscoverAsync(enableTrace);
//for using BlueGiga-Bluetoothadapter:
//await example.InitHostAndDiscoverAsync(enableTrace, bluetoothStackPort, enableTraceBlueGiga);
// InitHostAndDiscoverAsync uses the WinRT-bluetooth-implementation by default (bluetoothStackPort defaults to "WinRT" and enableTraceBlueGiga defaults to false)
await example.InitHostAndDiscoverAsync(enableTrace, bluetoothStackPort, enableTraceBlueGiga);

if (example.SelectedHub is not null)
{
Expand Down

0 comments on commit b88dba3

Please sign in to comment.