Class default

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

Hierarchy

  • default

Implements

Constructors

Properties

_modeFlag?: boolean
_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

  • Pair with the device

    デバイスとペアリング

    Returns Promise<null | string>

    pairing key ペアリングキー

  • Judge whether it is cooperation mode

    (When in cooperation mode, no data exists even when connected)

    連携モードかどうかの判定

    (連携モードのときは接続してもデータが存在しません)

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns boolean

    Whether it is cooperation mode or not

    連携モードかどうか

  • Verify that the received peripheral is from the UA1200BLE

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

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns null | boolean | ""

    Whether it is UA1200BLE

    UA1200BLEかどうか

Generated using TypeDoc