Class default

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

Hierarchy

  • default

Implements

Constructors

Properties

keys: string[] = []
onbuttonpressed: null | ((pressed) => void) = null

Callback when the button is pressed

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

Type declaration

    • (pressed): void
    • Parameters

      • pressed: boolean

      Returns void

params: any
requiredKeys: string[] = []

Methods

  • Make and send a command

    コマンドの作成と送信

    Parameters

    • payload: number[]

      payload ペイロード

    • crc: number = 0xb6

      CRC of the payload ペイロードのCRC

    Returns Promise<number[]>

  • 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