Skip to content

Commit

Permalink
Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
tthiery committed Jun 20, 2020
1 parent 04097c5 commit 09a68b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,12 @@ var motor = technicMediumHub.A.GetDevice<TechnicXLargeLinearMotor>();

await motor.SetupNotificationAsync(motor.ModeIndexAbsolutePosition, true);

// once upon a time later
// observe using System.Reactive
var disposable = motor.AbsolutePositionObservable.Subscribe(x => Console.WriteLine(x.SI));
// ... once finished observing (do not call immediately afterwards ;))
disposable.Dispose();

// OR manually observe it
Console.WriteLine(motor.AbsolutePosition);
````

Expand Down Expand Up @@ -155,7 +159,7 @@ using (var kernel = new BluetoothKernel(poweredUpBluetoothAdapter, bluetoothAddr
- .. other hubs depend on availability of hardware / contributions
- Devices
- [X] Technic Medium Hub - Rgb Light
- [ ] Technic Medium Hub - Current
- [X] Technic Medium Hub - Current
- [ ] Technic Medium Hub - Voltage
- [ ] Technic Medium Hub - Temperature Sensor 1
- [ ] Technic Medium Hub - Temperature Sensor 2
Expand Down

0 comments on commit 09a68b8

Please sign in to comment.