Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RS_BTIREX2

【NOT WORKING】 RS_BTIREX2 management class RS_BTIREX2を管理するクラス

Hierarchy

  • RS_BTIREX2

Implements

Index

Constructors

constructor

Properties

keys

keys: string[] = []

onbuttonpressed

onbuttonpressed: ((pressed: boolean) => void) | null = null

Callback when the button is pressed

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

params

params: any

requiredKeys

requiredKeys: string[] = []

Methods

_sendAndReceiveWait

  • _sendAndReceiveWait(payload: number[], crc?: number): Promise<number[]>
  • Make and send a command

    コマンドの作成と送信

    Parameters

    • payload: number[]

      payload ペイロード

    • Default value crc: number = 182

      CRC of the payload ペイロードのCRC

    Returns Promise<number[]>

connectWait

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

    センサへ接続

    Returns Promise<void>

wired

  • wired(obniz: Obniz): void
  • Parameters

    Returns void

Static info

  • Returns ObnizPartsInfo

Static isDevice

  • Verify that the received peripheral is from the RS_BTIREX2

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

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns boolean

    Whether it is the RS_BTIREX2

    RS_BTIREX2かどうか

Generated using TypeDoc