Options
All
  • Public
  • Public/Protected
  • All
Menu

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

  • Returns EXVital_Data

Static getData

Static info

Static isDevice

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