QtMobility Reference Documentation

QML BluetoothService Element

The BluetoothService element contains all the information available for a single bluetooth service.. More...

This element was introduced in Mobility 1.2.

Properties

Detailed Description

The BluetoothService element is part of the QtMobility.connectivity 1.2 module.

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

See also QBluetoothAddress and QBluetoothSocket.

Property Documentation

deviceAddress : string

This property holds the remote device MAc address. Must be valid if you to connect to a remote device with a BluetoothSocket.

This property group was introduced in Mobility 1.2.


read-onlydeviceName : string

This property holds the name of the remote device.

This property group was introduced in Mobility 1.2.


registered : string

This property holds the registration/publication status of the service. If true the service is published via service discovery. Not implemented in 1.2.

This property group was introduced in Mobility 1.2.


serviceDescription : string

This property holds the description provided by the remote service.

This property group was introduced in Mobility 1.2.


serviceName : string

This property holds the name of the remote service if available.

This property group was introduced in Mobility 1.2.


servicePort : int

This property holds the port value for the remote service. Bluetooth does not use well defined port values, so port values should not be stored and used later without care. Connecting via UUID is much more consistent.

This property group was introduced in Mobility 1.2.


serviceProtocol : string

This property holds the protocol used for the service. Can be the string "l2cap" or "rfcomm"

This property group was introduced in Mobility 1.2.


serviceUuid : string

This property holds the UUID of the remote service. Service UUID or port, as well as the address must be set to connect to a remote service. If UUID and port are set, the port is used. The UUID takes longer to connect since service discovery must be initiated to discover the port value.

This property group was introduced in Mobility 1.2.


X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.