Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • IOTileTracingInterface

Index

Constructors

constructor

Properties

Private channel

channel: BLEChannel | undefined

Private receivedData

receivedData: RingBuffer

Private rejectWaiter

rejectWaiter: function | null

Private removeTracingHandler

removeTracingHandler: function | null

Private resolveWaiter

resolveWaiter: function | null

Private waitLength

waitLength: number | null

Private waiterTimeout

waiterTimeout: number

Private waiterTimer

waiterTimer: number | null

Methods

clearData

  • clearData(): void

Private clearWaiter

  • clearWaiter(): void

close

  • close(): Promise<void>

open

receiveTracingData

  • receiveTracingData(value: ArrayBuffer): void

Private startWatchdogTimer

  • startWatchdogTimer(): void

waitForData

  • waitForData(numBytes: number, timeout?: number): Promise<ArrayBuffer>
  • Wait for a given number of bytes to be received by the tracing interface.

    You can only have a single wait waiting for data at a time. Attempting to call waitForData again before the first promise resolves will result in a rejected promise with OperationAtInvalidTimeError.

    Parameters

    • numBytes: number
    • Default value timeout: number = 1000

    Returns Promise<ArrayBuffer>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc