opper
Preparing search index...
@opper/capacitor
BluetoothLowEnergeyDevice
Class BluetoothLowEnergeyDevice
Hierarchy (
View Summary
)
AbstractBluetoothLowEnergeyDevice
BluetoothLowEnergeyDevice
Index
Constructors
constructor
Properties
characteristic
Value
Change
connected
Change
firmware
Revision
hardware
Revision
id
manufacturer
Name
model
Number
mtu
name
rssi
Change
serial
Number
services
software
Revision
Methods
connect
disconnect
exchange
Mtu
get
Characteristics
get
Mtu
read
Characteristic
Value
set
Mtu
start
Notifications
stop
Notifications
write
Characteristic
Value
write
Characteristic
Value
In
Batches
Constructors
constructor
new
BluetoothLowEnergeyDevice
(
id
:
string
)
:
BluetoothLowEnergeyDevice
Parameters
id
:
string
Returns
BluetoothLowEnergeyDevice
Properties
characteristic
Value
Change
characteristicValueChange
:
Subject
<
BluetoothLowEnergeyCharacteristicValue
>
= ...
connected
Change
connectedChange
:
Subject
<
boolean
>
= ...
Readonly
firmware
Revision
firmwareRevision
:
Observable
<
string
>
= ...
固件版本
Readonly
hardware
Revision
hardwareRevision
:
Observable
<
string
>
= ...
硬件版本
Readonly
id
id
:
string
Readonly
manufacturer
Name
manufacturerName
:
Observable
<
string
>
= ...
生产商名称
Readonly
model
Number
modelNumber
:
Observable
<
string
>
= ...
产品型号
Protected
mtu
mtu
:
number
= DEFAULT_MTU
name
name
:
Observable
<
string
>
= ...
设备名
rssi
Change
rssiChange
:
Observable
<
number
>
= ...
Readonly
serial
Number
serialNumber
:
Observable
<
string
>
= ...
产品序列号
services
services
:
Observable
<
BleService
[]
>
= ...
Readonly
software
Revision
softwareRevision
:
Observable
<
string
>
= ...
软件版本
Methods
connect
connect
(
_options
?:
AnyObject
)
:
Observable
<
any
>
Parameters
Optional
_options
:
AnyObject
Returns
Observable
<
any
>
disconnect
disconnect
()
:
Observable
<
any
>
Returns
Observable
<
any
>
exchange
Mtu
exchangeMtu
()
:
Observable
<
number
>
Returns
Observable
<
number
>
get
Characteristics
getCharacteristics
(
options
:
{
serviceId
:
string
}
&
AnyObject
,
)
:
Observable
<
BluetoothLowEnergeyCharacteristic
[]
>
Parameters
options
:
{
serviceId
:
string
}
&
AnyObject
Returns
Observable
<
BluetoothLowEnergeyCharacteristic
[]
>
get
Mtu
getMtu
()
:
Observable
<
number
>
Returns
Observable
<
number
>
read
Characteristic
Value
readCharacteristicValue
(
options
:
{
characteristicId
:
string
;
serviceId
:
string
}
&
AnyObject
,
)
:
Observable
<
ArrayBufferLike
>
Parameters
options
:
{
characteristicId
:
string
;
serviceId
:
string
}
&
AnyObject
Returns
Observable
<
ArrayBufferLike
>
set
Mtu
setMtu
(
_mtu
:
number
)
:
Observable
<
number
>
Parameters
_mtu
:
number
Returns
Observable
<
number
>
start
Notifications
startNotifications
(
options
:
{
characteristicId
:
string
;
serviceId
:
string
}
&
AnyObject
,
)
:
Observable
<
any
>
Parameters
options
:
{
characteristicId
:
string
;
serviceId
:
string
}
&
AnyObject
Returns
Observable
<
any
>
stop
Notifications
stopNotifications
(
options
:
{
characteristicId
:
string
;
serviceId
:
string
}
&
AnyObject
,
)
:
Observable
<
any
>
Parameters
options
:
{
characteristicId
:
string
;
serviceId
:
string
}
&
AnyObject
Returns
Observable
<
any
>
write
Characteristic
Value
writeCharacteristicValue
(
value
:
ArrayBuffer
,
options
:
{
characteristicId
:
string
;
serviceId
:
string
}
&
AnyObject
,
)
:
Observable
<
any
>
Parameters
value
:
ArrayBuffer
options
:
{
characteristicId
:
string
;
serviceId
:
string
}
&
AnyObject
Returns
Observable
<
any
>
write
Characteristic
Value
In
Batches
writeCharacteristicValueInBatches
(
value
:
ArrayBuffer
|
ArrayLike
<
number
>
,
options
:
{
characteristicId
:
string
;
serviceId
:
string
}
&
AnyObject
,
)
:
Observable
<
any
>
向 BLE 特征值中写入二进制数据,支持分批发送。
Parameters
value
:
ArrayBuffer
|
ArrayLike
<
number
>
options
:
{
characteristicId
:
string
;
serviceId
:
string
}
&
AnyObject
Returns
Observable
<
any
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
characteristic
Value
Change
connected
Change
firmware
Revision
hardware
Revision
id
manufacturer
Name
model
Number
mtu
name
rssi
Change
serial
Number
services
software
Revision
Methods
connect
disconnect
exchange
Mtu
get
Characteristics
get
Mtu
read
Characteristic
Value
set
Mtu
start
Notifications
stop
Notifications
write
Characteristic
Value
write
Characteristic
Value
In
Batches
opper
Loading...
固件版本