Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ObnizBLEHci

Index

Constructors

constructor

  • Parameters

    Returns ObnizBLEHci

Properties

Obniz

hciProtocolOnSocketData

hciProtocolOnSocketData: any

timeout

timeout: number = 90 * 1000

Methods

end

  • end(): void
  • Deinitalize BLE HCI module

    Returns void

init

  • init(): void
  • Initialize BLE HCI module

    Returns void

onread

  • onread(data: any): void
  • Callback on HCI command received.

    Parameters

    • data: any

    Returns void

readWait

  • readWait(binaryFilter: number[], option: { onTimeout?: undefined | (() => Promise<void>); timeout?: number | null; waitingFor: string }): Promise<Buffer>
  • Parameters

    • binaryFilter: number[]
    • option: { onTimeout?: undefined | (() => Promise<void>); timeout?: number | null; waitingFor: string }
      • Optional onTimeout?: undefined | (() => Promise<void>)
      • Optional timeout?: number | null
      • waitingFor: string

    Returns Promise<Buffer>

write

  • write(hciCommand: number[]): void
  • write HCI command to HCI module

    Parameters

    • hciCommand: number[]

    Returns void

Generated using TypeDoc