Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RS_Seek3

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

Hierarchy

  • RS_Seek3

Implements

Index

Constructors

constructor

Properties

_peripheral

_peripheral: BleRemotePeripheral | null = null

keys

keys: string[] = []

Optional ondisconnect

ondisconnect: undefined | ((reason: any) => void)

onpressed

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

Callback when the button is pressed

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

params

params: any

requiredKeys

requiredKeys: string[] = []

Methods

connectWait

  • connectWait(): Promise<void>
  • Connect the sensor

    センサへ接続

    Returns Promise<void>

disconnectWait

  • disconnectWait(): Promise<void>
  • Disconnect from the sensor

    センサから切断

    Returns Promise<void>

getTempHumidWait

  • getTempHumidWait(): Promise<{ humidity: number; temperature: number }>
  • 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 湿度
    
    }

wired

  • wired(obniz: Obniz): void
  • Parameters

    Returns void

Static info

  • Returns ObnizPartsInfo

Static isDevice

  • 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