Class default

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

Hierarchy

  • default

Implements

Constructors

Properties

_peripheral: null | BleRemotePeripheral = null

Internally Used function for connection required devices

onNotify?: ((data) => void)

Type declaration

    • (data): void
    • Event handler for receiving data

      return data in callback after running startNotifyWait

      データ取得のイベントハンドラー

      startNotifyWait を実行後コールバックでデータを返す

      Parameters

      Returns void

ondisconnect?: ((reason) => void)

Type declaration

    • (reason): void
    • Parameters

      • reason: any

      Returns void

Methods

  • Set the range of values for the accelerometer

    uPRISM measures a set range with 4,096 steps of resolution

    加速度センサーの値の範囲を設定

    uPRISMは設定された範囲を4096段階の分解能で計測します

    Parameters

    • range: AccelRangeType

      range of values for the accelerometer 加速度センサーの値の範囲

    Returns void

  • Start notifying when the data have got from the uPRISM with connected state

    接続状態でuPRISMからデータを取得したときの通知を開始

    Returns Promise<void>

  • Verify that the received peripheral is from the uPRISM

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

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns boolean

    Whether it is the uPRISM

    uPRISMかどうか

Generated using TypeDoc