Class ObnizPartsBleInterfaceAbstract

Hierarchy

Implemented by

Constructors

Properties

_peripheral: null | BleRemotePeripheral = null

Internally Used function for connection required devices

ondisconnect?: ((reason) => void)

Type declaration

    • (reason): void
    • ondisconnect callback function.

      Parameters

      • reason: any

      Returns void

info: (() => ObnizPartsBleInfo)

Type declaration

isDevice: ((peripheral) => boolean)

Type declaration

    • (peripheral): boolean
    • Check founded BleRemotePeripheral is kind of this parts or not

      Parameters

      Returns boolean

Methods

  • Utility function for reading 2 byte to signed number.

    Parameters

    • high: number
    • low: number

    Returns number

  • Utility function for reading 4 byte to signed number.

    Parameters

    • byte3: number
    • byte2: number
    • byte1: number
    • byte0: number

    Returns number

Generated using TypeDoc