Class default

UT201BLE management class UT201BLEを管理するクラス

Hierarchy

  • default

Implements

Constructors

Properties

_peripheral: null | BleRemotePeripheral

Internally Used function for connection required devices

batteryService?: BleBatteryService
genericAccess?: BleGenericAccess
onNotify?: ((co2) => void)

Type declaration

    • (co2): void
    • Parameters

      • co2: number

      Returns void

ondisconnect?: ((reason) => void)

Type declaration

    • (reason): void
    • Parameters

      • reason: any

      Returns void

Methods

  • Get data from the UT201BLE

    UT201BLEからデータを取得

    Parameters

    • Optional pairingKeys: string

      pairing key ペアリングキー

    Returns Promise<UT201BLEResult[]>

    data from the UT201BLE UT201BLEから受け取ったデータ

  • Pair with the device

    デバイスとペアリング

    Returns Promise<null | string>

    pairing key ペアリングキー

  • Verify that the received peripheral is from the UT201BLE

    受け取ったPeripheralがUT201BLEのものかどうかを確認する

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns null | boolean | ""

    Whether it is UT201BLE

    UT201BLEかどうか

Generated using TypeDoc