Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EXTxx

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

Hierarchy

Index

Constructors

constructor

Properties

_peripheral

_peripheral: BleRemotePeripheral | null = null

Internally Used function for connection required devices

Optional ondisconnect

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

ondisconnect callback function.

Static AvailableBleMode

AvailableBleMode: "Beacon" = "Beacon"

Static PartsName

PartsName: "EXTxx" = "EXTxx"

Methods

getData

  • (with instantiation) Get a data from the beacon

    (インスタンス化する場合) ビーコンからデータを取得

    Returns EXTxx_Data

    received data from the beacon ビーコンから受け取ったデータ

Static getData

  • (without instantiation) Get a data from the beacon

    (インスタンス化しない場合) ビーコンからデータを取得

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns EXTxx_Data | null

    received data from the beacon ビーコンから受け取ったデータ

Static info

Static isDevice

  • Verify that the received peripheral is from the EXTxx

    受け取ったperipheralがEXTxxのものかどうか確認する

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns boolean

    Whether it is the EXTxx

    EXTxxかどうか

Static readFraction

  • readFraction(byte: number): number
  • Utility function for reading 1byte fixed point number

    Parameters

    • byte: number

    Returns number

Static signed16FromBinary

  • signed16FromBinary(high: number, low: number): number
  • Utility function for reading 2 byte to signed number.

    Parameters

    • high: number
    • low: number

    Returns number

Static signed32FromBinary

  • signed32FromBinary(byte3: number, byte2: number, byte1: number, byte0: number): number
  • Utility function for reading 4 byte to signed number.

    Parameters

    • byte3: number
    • byte2: number
    • byte1: number
    • byte0: number

    Returns number

Generated using TypeDoc