Class Characteristic

Hierarchy

Index

Properties

Methods

Properties

public descriptors: Descriptor[]

public name: string

public properties: Array<string>

public type: string

public uuid: string

Methods

public addListener(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public broadcast(broadcast: boolean, callback?: (error: string) => void)

Parameters

  • broadcast: boolean
  • callback?: (error: string) => void optional

public discoverDescriptors(callback?: (error: string, descriptors: "noble".Descriptor[]) => void)

Parameters

  • callback?: (error: string, descriptors: "noble".Descriptor[]) => void optional

public emit(event: string, args?: Array<any>): boolean

Parameters

  • event: string
  • args?: Array<any> optional

Returns

boolean

public listeners(event: string): Array<Function>

Parameters

  • event: string

Returns

Array<Function>

public notify(notify: boolean, callback?: (error: string) => void)

Parameters

  • notify: boolean
  • callback?: (error: string) => void optional

public on(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public on(event: string, option: boolean, listener: Function): EventEmitter

Parameters

  • event: string
  • option: boolean
  • listener: Function

Returns

EventEmitter

public on(event: ""read"", listener: (data: NodeBuffer, isNotification: boolean) => void): EventEmitter

Parameters

  • event: ""read""
  • listener: (data: NodeBuffer, isNotification: boolean) => void

Returns

EventEmitter

public on(event: ""write"", withoutResponse: boolean, listener: (error: string) => void): EventEmitter

Parameters

  • event: ""write""
  • withoutResponse: boolean
  • listener: (error: string) => void

Returns

EventEmitter

public on(event: ""broadcast"", listener: (state: string) => void): EventEmitter

Parameters

  • event: ""broadcast""
  • listener: (state: string) => void

Returns

EventEmitter

public on(event: ""notify"", listener: (state: string) => void): EventEmitter

Parameters

  • event: ""notify""
  • listener: (state: string) => void

Returns

EventEmitter

public on(event: ""descriptorsDiscover"", listener: (descriptors: "noble".Descriptor[]) => void): EventEmitter

Parameters

  • event: ""descriptorsDiscover""
  • listener: (descriptors: "noble".Descriptor[]) => void

Returns

EventEmitter

public once(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public read(callback?: (error: string, data: NodeBuffer) => void)

Parameters

  • callback?: (error: string, data: NodeBuffer) => void optional

public removeAllListeners(event?: string): EventEmitter

Parameters

  • event?: string optional

Returns

EventEmitter

public removeListener(event: string, listener: Function): EventEmitter

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

public setMaxListeners(n: number)

Parameters

  • n: number

public toString(): string

Returns

string

public write(data: NodeBuffer, notify: boolean, callback?: (error: string) => void)

Parameters

  • data: NodeBuffer
  • notify: boolean
  • callback?: (error: string) => void optional