Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logtta_TH

Hierarchy

  • Logtta_TH

Implements

Index

Constructors

constructor

Properties

_peripheral

_peripheral: null | BleRemotePeripheral

Optional onNotify

onNotify: undefined | ((data: Logtta_TH_Data) => void)

Optional ondisconnect

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

Methods

authPinCodeWait

  • authPinCodeWait(code: string): Promise<void>
  • Parameters

    • code: string

    Returns Promise<void>

connectWait

  • connectWait(): Promise<void>
  • Returns Promise<void>

disconnectWait

  • disconnectWait(): Promise<void>
  • Returns Promise<void>

getAllWait

  • Returns Promise<Logtta_TH_Data | null>

getHumidityWait

  • getHumidityWait(): Promise<number>
  • Returns Promise<number>

getTemperatureWait

  • getTemperatureWait(): Promise<number>
  • Returns Promise<number>

setBeaconMode

  • setBeaconMode(enable: boolean): Promise<void>
  • deprecated

    Parameters

    • enable: boolean

    Returns Promise<void>

setBeaconModeWait

  • setBeaconModeWait(enable: boolean): Promise<void>
  • Parameters

    • enable: boolean

    Returns Promise<void>

startNotifyWait

  • startNotifyWait(): Promise<void>
  • Returns Promise<void>

Static getData

Static info

Static isAdvDevice

  • Parameters

    Returns boolean

Static isDevice

  • Parameters

    Returns boolean

Generated using TypeDoc