Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ENERTALK_TOUCH

Implements

Index

Constructors

constructor

Properties

_peripheral

_peripheral: BleRemotePeripheral | null = null

Optional batteryService

batteryService: BleBatteryService

keys

keys: string[] = []

onbuttonpressed

onbuttonpressed: ((pressed: boolean) => void) | null = null

Optional ondisconnect

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

params

params: any

requiredKeys

requiredKeys: string[] = []

Methods

connectWait

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

disconnectWait

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

getAccelerometerWait

  • getAccelerometerWait(): Promise<{ x: number; y: number; z: number }>
  • Returns Promise<{ x: number; y: number; z: number }>

getHumidityWait

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

getIlluminationWait

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

getTemperatureWait

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

Static info

  • Returns ObnizPartsInfo

Static isDevice

  • Parameters

    Returns boolean

Generated using TypeDoc