Frameworks > Bluetooth Framework

Function Call Details

(1/1)

servel333:
This topic is intended to cover unspecified details on function calls.

Note: I am no expert on the Bluetooth specification in general.

For starters:

* wclBluetoothDevice.Assign - what does this do?
* wclBluetoothDevice.ClassOfDevice
* - Does this return only the Major Device Class + Minor Device Class as a single value, excluding the Service Class?
* - Is this related to this document https://www.bluetooth.org/Technical/AssignedNumbers/baseband.htm, and as such, are all values on this list valid returns for this function?

Mike Petrichenko:
Good day!


--- Quote from: servel333 on April 04, 2008, 11:42:11 PM ---wclBluetoothDevice.Assign - what does this do?

--- End quote ---

The Assign method of any class simple copy the one class, passed as parameter into current one. Let say you have the instance of the wclBluetoothDevice class. And also you have the global variable represents the currently used device. So you may fast copy the instance to the global variable by using Assign method.

Actually, it is mostly usefull for VCL version (because unmanaged code). For .NET version you may simple store the required instance in the any other variable (and the CLR will manage the instances).


--- Quote from: servel333 on April 04, 2008, 11:42:11 PM ---wclBluetoothDevice.ClassOfDevice
Does this return only the Major Device Class + Minor Device Class as a single value, excluding the Service Class?

--- End quote ---

ClassOfDevice returns complete information about device's class and features. In the attachment you can find all defined classes and usefull contants for it.


--- Quote from: servel333 on April 04, 2008, 11:42:11 PM ---Is this related to this document https://www.bluetooth.org/Technical/AssignedNumbers/baseband.htm, and as such, are all values on this list valid returns for this function?

--- End quote ---

Yes, it is.

[attachment deleted by admin]

Navigation

[0] Message Index

Sitemap 1 2 3 4 5 6 7 
Go to full version