Oreo(8.1.0)BLE扫描不适用于过滤器

时间:2018-11-08 18:47:34

标签: android android-bluetooth

当我初始化BLE扫描时,使用以下代码(在前台,运行Android 8.1.0的Nokia 1时),我能够成功查看所有设备:

object = newlyCreatedThing

但是,一旦我修改了过滤器列表(例如第2至4行),就这样:

<mat-card>
  <mat-spinner *ngIf="isLoading"></mat-spinner>
  <form [formGroup]="form" (submit)="onLogin()" *ngIf="!isLoading">
    <mat-form-field>
      <input matInput type="email" formControlName="email" placeholder="Email">
      <mat-error *ngIf="form.get('email').invalid">Please enter a valid email.</mat-error>
    </mat-form-field>

    <mat-form-field>
      <input matInput type="password" formControlName="password" placeholder="Password">
      <mat-error *ngIf="form.get('password').invalid">Please enter a valid password.</mat-error>
    </mat-form-field>

    <mat-action-row>
      <!-- NOT COLORED-->
      <button mat-raised-button type="submit" color="warn">Login</button>
    </mat-action-row>

  </form>
  <!-- COLORED-->
  <button mat-raised-button type="submit" color="warn">Login</button>
</mat-card>

我再也看不到任何东西了。对这里可能发生的事情有任何想法吗?

0 个答案:

没有答案
相关问题