Class default

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

Hierarchy

  • default

Implements

Constructors

Properties

_peripheral: null | BleRemotePeripheral = null

Internally Used function for connection required devices

keys: string[] = []
params: any
requiredKeys: string[] = []

Methods

  • Connect to the device, get data, and then disconnect from the device

    You can get only data that the device has not yet sent

    デバイスに接続しデータを取得後、デバイスとの接続を切断

    取得できるデータはデバイスが未送信のデータのみです

    Returns Promise<HEM_9200TResult[]>

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

  • Execute a callback function when data is received from any service characteristic

    任意のサービス・キャラクタティスティックからデータを受け取ると、コールバック関数を実行

    Parameters

    • service: string

      service サービス

    • char: string

      characteristic キャラクタリスティック

    • Optional callback: any

      callback function when received data データを受け取ったときのコールバック関数

    Returns Promise<void>

  • Verify that the received peripheral is from the HEM_9200T

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

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns boolean

    Whether it is the HEM_9200T

    HEM_9200Tかどうか

Generated using TypeDoc