IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

BluetoothService QML Type

Provides information about a particular Bluetooth service.

This type was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

BluetoothService QML Type

  • Import Statement: import QtBluetooth 5.12

  • Since: Qt 5.2

Detailed Description

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

See Also

Property Documentation

 

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 signal.

[read-only] deviceName : string

This property holds the name of the remote device. Changing this property emits the detailsChanged signal.

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 signal.

serviceName : string

This property holds the name of the remote service if available. Changing this property emits the detailsChanged signal.

serviceProtocol : enumeration

This property holds the protocol used for the service. Changing this property emits the detailsChanged signal.

Possible values for this property are:

Property

Description

BluetoothService.RfcommProtocol

The Rfcomm protocol is used.

BluetoothService.L2capProtocol

The L2cap protocol is used.

BluetoothService.UnknownProtocol

The protocol is unknown.

See Also

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 signal.

Signal Documentation

 

detailsChanged()

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

The corresponding handler is onDetailsChanged.

The corresponding handler is onDetailsChanged.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+