BluetoothService QML Type

Provides information about a particular Bluetooth service. 更多...

import 语句: import QtBluetooth 5.15
Since: Qt 5.2

特性

信号

详细描述

It allows a QML project to get information about a remote service, or describe a service for a BluetoothSocket to connect to.

另请参阅 QBluetoothAddress and QBluetoothSocket .

特性文档编制

deviceAddress : string

This property holds the remote device's MAC address. It must be a valid address to connect to a remote device using a Bluetooth socket. Changing this property emits the detailsChanged 信号。

deviceName : string

This property holds the name of the remote device. Changing this property emits the detailsChanged 信号。

registered : string

This property holds the registration/publication status of the service. If true, the service is published during service discovery.

serviceDescription : string

This property holds the description provided by the remote service. Changing this property emits the detailsChanged 信号。

serviceName : string

This property holds the name of the remote service if available. Changing this property emits the detailsChanged 信号。

serviceProtocol : enumeration

This property holds the protocol used for the service. Changing this property emits the detailsChanged 信号。

Possible values for this property are:

特性 描述
BluetoothService.RfcommProtocol The Rfcomm protocol is used.
BluetoothService.L2capProtocol The L2cap protocol is used.
BluetoothService.UnknownProtocol The protocol is unknown.

另请参阅 QBluetoothServiceInfo::Protocol .

serviceUuid : string

This property holds the UUID of the remote service. Service UUID, and the address must be set to connect to a remote service. Changing this property emits the detailsChanged 信号。

信号文档编制

detailsChanged ()

This signal is emitted when any of the following properties changes:

相应处理程序是 onDetailsChanged .

注意: 相应处理程序是 onDetailsChanged .