Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EXVital

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

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: "EXVital" = "EXVital"

Methods

getData

  • (with instantiation) Get a data from the beacon

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

    Returns EXVital_Data

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

Static getData

  • (without instantiation) Get a data from the beacon

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

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns EXVital_Data | null

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

Static info

Static isDevice

  • Verify that the received peripheral is from the EXVital

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

    Parameters

    • peripheral: BleRemotePeripheral

      instance of BleRemotePeripheral BleRemotePeripheralのインスタンス

    Returns boolean

    Whether it is the EXVital

    EXVitalかどうか

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