Preparing search index...
The search index is not available
Node Web Bluetooth
Node Web Bluetooth
adapters/simpleble
Peripheral
Interface Peripheral
SimpleBLE Peripheral.
interface
Peripheral
{
address
:
string
;
addressType
:
AddressType
;
connectable
:
boolean
;
connected
:
boolean
;
identifier
:
string
;
manufacturerData
:
Record
<
string
,
Uint8Array
>
;
mtu
:
number
;
paired
:
boolean
;
rssi
:
number
;
services
:
Service
[]
;
txPower
:
number
;
connect
(
)
:
boolean
;
disconnect
(
)
:
boolean
;
indicate
(
service
:
string
,
characteristic
:
string
,
cb
:
(
(
data
:
Uint8Array
)
=>
void
)
)
:
boolean
;
notify
(
service
:
string
,
characteristic
:
string
,
cb
:
(
(
data
:
Uint8Array
)
=>
void
)
)
:
boolean
;
read
(
service
:
string
,
characteristic
:
string
)
:
Uint8Array
;
readDescriptor
(
service
:
string
,
characteristic
:
string
,
descriptor
:
string
)
:
Uint8Array
;
setCallbackOnConnected
(
cb
:
(
(
)
=>
void
)
)
:
boolean
;
setCallbackOnDisconnected
(
cb
:
(
(
)
=>
void
)
)
:
boolean
;
unpair
(
)
:
boolean
;
unsubscribe
(
service
:
string
,
characteristic
:
string
)
:
boolean
;
writeCommand
(
service
:
string
,
characteristic
:
string
,
data
:
Uint8Array
)
:
boolean
;
writeDescriptor
(
service
:
string
,
characteristic
:
string
,
descriptor
:
string
,
data
:
Uint8Array
)
:
boolean
;
writeRequest
(
service
:
string
,
characteristic
:
string
,
data
:
Uint8Array
)
:
boolean
;
}
Index
Properties
address
address
Type
connectable
connected
identifier
manufacturer
Data
mtu
paired
rssi
services
tx
Power
Methods
connect
disconnect
indicate
notify
read
read
Descriptor
set
Callback
On
Connected
set
Callback
On
Disconnected
unpair
unsubscribe
write
Command
write
Descriptor
write
Request
Properties
address
address
:
string
address
Type
address
Type
:
AddressType
connectable
connectable
:
boolean
connected
connected
:
boolean
identifier
identifier
:
string
manufacturer
Data
manufacturer
Data
:
Record
<
string
,
Uint8Array
>
mtu
mtu
:
number
paired
paired
:
boolean
rssi
rssi
:
number
services
services
:
Service
[]
tx
Power
tx
Power
:
number
Methods
connect
connect
(
)
:
boolean
Returns
boolean
disconnect
disconnect
(
)
:
boolean
Returns
boolean
indicate
indicate
(
service
,
characteristic
,
cb
)
:
boolean
Parameters
service
:
string
characteristic
:
string
cb
:
(
(
data
:
Uint8Array
)
=>
void
)
(
data
)
:
void
Parameters
data
:
Uint8Array
Returns
void
Returns
boolean
notify
notify
(
service
,
characteristic
,
cb
)
:
boolean
Parameters
service
:
string
characteristic
:
string
cb
:
(
(
data
:
Uint8Array
)
=>
void
)
(
data
)
:
void
Parameters
data
:
Uint8Array
Returns
void
Returns
boolean
read
read
(
service
,
characteristic
)
:
Uint8Array
Parameters
service
:
string
characteristic
:
string
Returns
Uint8Array
read
Descriptor
read
Descriptor
(
service
,
characteristic
,
descriptor
)
:
Uint8Array
Parameters
service
:
string
characteristic
:
string
descriptor
:
string
Returns
Uint8Array
set
Callback
On
Connected
set
Callback
On
Connected
(
cb
)
:
boolean
Parameters
cb
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
boolean
set
Callback
On
Disconnected
set
Callback
On
Disconnected
(
cb
)
:
boolean
Parameters
cb
:
(
(
)
=>
void
)
(
)
:
void
Returns
void
Returns
boolean
unpair
unpair
(
)
:
boolean
Returns
boolean
unsubscribe
unsubscribe
(
service
,
characteristic
)
:
boolean
Parameters
service
:
string
characteristic
:
string
Returns
boolean
write
Command
write
Command
(
service
,
characteristic
,
data
)
:
boolean
Parameters
service
:
string
characteristic
:
string
data
:
Uint8Array
Returns
boolean
write
Descriptor
write
Descriptor
(
service
,
characteristic
,
descriptor
,
data
)
:
boolean
Parameters
service
:
string
characteristic
:
string
descriptor
:
string
data
:
Uint8Array
Returns
boolean
write
Request
write
Request
(
service
,
characteristic
,
data
)
:
boolean
Parameters
service
:
string
characteristic
:
string
data
:
Uint8Array
Returns
boolean
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Properties
address
address
Type
connectable
connected
identifier
manufacturer
Data
mtu
paired
rssi
services
tx
Power
Methods
connect
disconnect
indicate
notify
read
read
Descriptor
set
Callback
On
Connected
set
Callback
On
Disconnected
unpair
unsubscribe
write
Command
write
Descriptor
write
Request
Node Web Bluetooth
Loading...
SimpleBLE Peripheral.