Class default

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

Hierarchy

  • default

Implements

Constructors

  • Parameters

    • peripheral: null | BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    • timezoneOffsetMinute: number

      difference from UTC (Unit: minutes) 協定世界時との差(単位: 分)

    Returns default

Properties

_peripheral: null | BleRemotePeripheral = null

Internally Used function for connection required devices

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

Methods

  • Set the current time

    現在時刻を設定

    Parameters

    • timeOffsetMinute: number

      difference from UTC (Unit: minutes) 協定世界時との差(単位: 分)

    Returns Promise<void>

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

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

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

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

    Parameters

    • Optional pairingKeys: string

      pairing keys ペアリングキー

    Returns Promise<HEM_6233TResult[]>

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

  • 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_6233T

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

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns boolean

    Whether it is the HEM_6233T

    HEM_6233Tかどうか

Generated using TypeDoc