Interface: IBluetoothService

miot/Bluetooth.IBluetoothService

BLE蓝牙服务类

Members

getCharacteristic

获取蓝牙特征

(readonly) isDiscovered :boolean

蓝牙服务是否已被发现

(readonly) UUID :string

蓝牙服务 UUID

Methods

startDiscoverCharacteristics(…characteristicUUIDs) → {boolean}

发现蓝牙特征

Parameters:
Name Type Attributes Description
characteristicUUIDs string <repeatable>

特征的 UUID

Returns:
Type
boolean