Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Indexable

[key: string]: any

Index

Constructors

constructor

Properties

address

address: number | undefined

Protected appInfo

appInfo: number

Protected downloadStreamState

downloadStreamState: DownloadStreamState | null

Protected firmwareVersion

firmwareVersion: string

highestUniqueID

highestUniqueID: number

Protected hwTag

hwTag: string

Protected iotileID

iotileID: number

Protected name

name: string

notificationCallback

notificationCallback: NotificationCallback | null

Protected osInfo

osInfo: number

prestreamingHook

prestreamingHook: PrestreamingHook | null

queuedReports

queuedReports: ArrayBuffer[] | SharedArrayBuffer[] | any[]

realtimeStreamers

realtimeStreamers: RealtimeStreamerState[]

Protected rpcTable

rpcTable: object

Type declaration

streamerAcks

streamerAcks: object

Type declaration

  • [key: number]: number

streams

streams: object

Type declaration

Methods

acknowledgeStreamer

  • acknowledgeStreamer(streamer: number, force: boolean, value: number): RPCResponse

Protected addRPC

  • addRPC(address: number, rpcID: number, argFormat: string, respFormat: string, handler: function, thisObject: object): void
  • Add an RPC to this RPCDispatcher.

    The RPC handler is stored for later use and can be called using the public method rpc(address, rpcID, packedArguments: ArrayBuffer)

    Parameters

    • address: number

      The address of the tile where we want to add this RPC

    • rpcID: number

      The 16-bit RPC id of the RPC, something like 0x8000

    • argFormat: string

      A format string compatible with unpackArrayBuffer to unpack arguments

    • respFormat: string

      A format string compatbile with packArrayBuffer to pack the return value

    • handler: function

      A handler function that is called with bind(this, handler)

    • thisObject: object

      The object that should be used for the this parameter to handler

    Returns void

addRealtimeStreamer

  • addRealtimeStreamer(stream: number, intervalMS: number): void

beginDownloadStream

  • beginDownloadStream(stream: number): number[]

Private combineVersion

  • combineVersion(tag: number, version: string): number

disableStreaming

  • disableStreaming(): void

downloadReading

  • downloadReading(stream: number): number[]

enableStreaming

Protected findRPCHandlers

  • findRPCHandlers(obj: object): void

getCurrentDeviceTime

getDeviceInfo

getHardwareTag

Protected handleRealtimeStreamer

hasRPC

  • hasRPC(address: number, rpcID: number): boolean

inspectVirtualStream

  • inspectVirtualStream(stream: number): number[]

Private isBufferedStream

  • isBufferedStream(stream: number): boolean

isStreamingEnabled

  • isStreamingEnabled(): boolean

pushReading

  • pushReading(value: number, stream: number): number[]

queryStreamer

rpc

  • rpc(address: number, rpcID: number, args?: ArrayBuffer): Promise<ArrayBuffer>

tile_status

triggerStreamer

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