Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
noble
Service
Class Service
Hierarchy
EventEmitter
Service
Index
Properties
characteristics
includedServiceUuids
name
type
uuid
Methods
addListener
discoverCharacteristics
discoverIncludedServices
emit
listeners
on
once
removeAllListeners
removeListener
setMaxListeners
toString
Properties
public
characteristics
:
Characteristic
[]
public
includedServiceUuids
:
Array<string>
public
name
:
string
public
type
:
string
public
uuid
:
string
Methods
public
addListener
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
discoverCharacteristics
(
characteristicUUIDs
:
Array<string>
, callback
?:
(error: string, characteristics: "noble".Characteristic[]) => void
)
Parameters
characteristicUUIDs:
Array<string>
callback?:
(error: string, characteristics: "noble".Characteristic[]) => void
optional
public
discoverIncludedServices
(
serviceUUIDs
:
Array<string>
, callback
?:
(error: string, includedServiceUuids: string[]) => void
)
Parameters
serviceUUIDs:
Array<string>
callback?:
(error: string, includedServiceUuids: string[]) => 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
on
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
public
on
(
event
:
""includedServicesDiscover""
, listener
:
(includedServiceUuids: string[]) => void
)
:
EventEmitter
Parameters
event:
""includedServicesDiscover""
listener:
(includedServiceUuids: string[]) => void
Returns
EventEmitter
public
on
(
event
:
""characteristicsDiscover""
, listener
:
(characteristics: "noble".Characteristic[]) => void
)
:
EventEmitter
Parameters
event:
""characteristicsDiscover""
listener:
(characteristics: "noble".Characteristic[]) => void
Returns
EventEmitter
public
once
(
event
:
string
, listener
:
Function
)
:
EventEmitter
Parameters
event:
string
listener:
Function
Returns
EventEmitter
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
Globals
NodeJS
assert
buffer
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
net
noble
os
path
punycode
querystring
readline
repl
stream
string_decoder
tls
tty
url
util
vm
zlib
Advertisement
Characteristic
Descriptor
Peripheral
Service
characteristics
includedServiceUuids
name
type
uuid
addListener
discoverCharacteristics
discoverIncludedServices
emit
listeners
on
once
removeAllListeners
removeListener
setMaxListeners
toString
on
startScanning
stopScanning