Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ObnizPartsBleInterface

Hierarchy

  • ObnizPartsBleInterface

Implemented by

Index

Properties

_peripheral

_peripheral: BleRemotePeripheral | null = null

Internally Used function for connection required devices

Optional ondisconnect

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

ondisconnect callback function.

Static info

info: () => ObnizPartsBleInfo

Information of parts. name: key name of parts

Type declaration

Static isDevice

isDevice: (peripheral: BleRemotePeripheral) => boolean

Check founded BleRemotePeripheral is kind of this parts or not

Type declaration

Methods

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

Generated using TypeDoc