Dynamic module noble

Index

Interfaces

Classes

Functions

Functions

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

Parameters

  • event: string
  • listener: Function

Returns

EventEmitter

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

Parameters

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

Returns

EventEmitter

on(event: ""scanStart"", listener: () => void): EventEmitter

Parameters

  • event: ""scanStart""
  • listener: () => void

Returns

EventEmitter

on(event: ""scanStop"", listener: () => void): EventEmitter

Parameters

  • event: ""scanStop""
  • listener: () => void

Returns

EventEmitter

on(event: ""discover"", listener: (peripheral: "noble".Peripheral) => void): EventEmitter

Parameters

  • event: ""discover""
  • listener: (peripheral: "noble".Peripheral) => void

Returns

EventEmitter

startScanning()

startScanning(serviceUUIDs: Array<string>)

Parameters

  • serviceUUIDs: Array<string>

startScanning(serviceUUIDs: Array<string>, allowDuplicates: boolean)

Parameters

  • serviceUUIDs: Array<string>
  • allowDuplicates: boolean

stopScanning()