Class default

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

Hierarchy

  • default

Implements

Constructors

Properties

_peripheral: null | BleRemotePeripheral = null

Internally Used function for connection required devices

keys: string[] = []
ondisconnect?: ((reason) => void)

Type declaration

    • (reason): void
    • Parameters

      • reason: any

      Returns void

onpressed: null | (() => void) = null

Callback when the button is pressed

ボタンが押されたときにコールバック

Type declaration

    • (): void
    • Returns void

params: any
requiredKeys: string[] = []

Methods

  • Get temperature and humidity data from the RS_SEEK3

    RS_SEEK3から温湿度データを取得

    Returns Promise<{
        humidity: number;
        temperature: number;
    }>

    temperature and humidity data 温湿度データ

    {

    temperature: temperature 温度,

    humidity: humidity 湿度

    }
  • Verify that the received peripheral is from the RS_Seek3

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

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns boolean

    Whether it is the RS_Seek3

    RS_Seek3かどうか

Generated using TypeDoc