diff --git a/docs/components/BatteryLevelComponent.html b/docs/components/BatteryLevelComponent.html
index 304601c..ce726c6 100644
--- a/docs/components/BatteryLevelComponent.html
+++ b/docs/components/BatteryLevelComponent.html
@@ -364,8 +364,8 @@
-
+
|
@@ -438,8 +438,8 @@
-
+
|
@@ -507,8 +507,8 @@
-
+
|
@@ -618,8 +618,8 @@
-
+
|
@@ -1074,7 +1074,10 @@
requestValue() {
this.valuesSubscription = this.service.value()
- .subscribe((value: number) => this.updateValue(value), error => this.hasError(error));
+ .subscribe({
+ next: (val: number) => this.updateValue(val),
+ error: (err) => this.hasError(err)
+ });
}
updateValue(value: number) {
diff --git a/docs/components/DashboardComponent.html b/docs/components/DashboardComponent.html
index 6c9eb37..d0fcfc6 100644
--- a/docs/components/DashboardComponent.html
+++ b/docs/components/DashboardComponent.html
@@ -262,6 +262,37 @@ Constructor
</mat-card>
</mat-grid-tile>
+ <!-- stepper -->
+
+ <mat-grid-tile colspan="3" rowspan="1">
+ <mat-card class="dashboard-card">
+ <mat-card-header>
+ <mat-card-title>
+ Stepper
+ <button mat-icon-button class="more-button" [matMenuTriggerFor]="menuStepper" aria-label="Toggle menu">
+ <mat-icon>more_vert</mat-icon>
+ </button>
+ <mat-menu #menuStepper="matMenu" xPosition="before">
+ <button mat-menu-item *ngIf="(stepper.device | async) === null" (click)="stepper.requestValue()">
+ <mat-icon>bluetooth_searching</mat-icon>
+ Connect
+ </button>
+ <button mat-menu-item *ngIf="(stepper.device | async)" (click)="stepper.disconnect()">
+ <mat-icon>bluetooth_disabled</mat-icon>
+ Disconnect
+ </button>
+ </mat-menu>
+ </mat-card-title>
+ <mat-card-subtitle *ngIf="(stepper.device | async) as device">
+ {{ device.name }}
+ </mat-card-subtitle>
+ </mat-card-header>
+ <mat-card-content class="dashboard-card-content">
+ <ble-stepcounter #stepper></ble-stepcounter>
+ </mat-card-content>
+ </mat-card>
+ </mat-grid-tile>
+
</mat-grid-list>
</div>
@@ -341,7 +372,7 @@ Constructor