TwclRfCommClient Class
The Bluetooth RFCOMM Client component.
type TwclRfCommClient = class(TwclBluetoothComponent) end;
The TwclRfCommClient type exposes the following members.
Name | Description | |
---|---|---|
Create(TComponent) | Creates new RFCOMM client component. (Overrides TwclBluetoothComponent.Create(TComponent).) | |
Destroy | Frees the component. (Overrides TwclBluetoothComponent.Destroy.) |
Name | Description | |
---|---|---|
Address | Gets and sets a target Bluetooth device's MAC address. | |
Authentication | Gets and sets the authentication property for the connection. | |
Channel | Gets and sets the RFCOMM channel number used for connection. | |
Encryption | Gets and sets the Encryption property for the connection. | |
Processor | Gets the Data Processor created for the connection. | |
Radio | Gets the radio object used for connection. | |
Service | Gets and sets the service's UUID that should be used for connection. | |
State | Gets the current client state. | |
Timeout | Gets and sets the connect timeout value. |
Name | Description | |
---|---|---|
Connect(TwclBluetoothRadio) | Starts connecting to a remote Bluetooth device. | |
Disconnect | Disconnects from the connection remote device. | |
DoConnect(Integer) | Fires the | |
DoCreateProcessor(TwclClientDataConnection) | Fires the | |
DoData(Pointer,Cardinal) | Fires the | |
DoDestroyProcessor(TwclClientDataConnection) | Fires the | |
DoDisconnect(Integer) | Fires the | |
Enter | Enters the Bluetooth component protection critical section. (Inherited from TwclBluetoothComponent.) | |
GetReadBufferSize(Cardinal) | Reads the read buffer size. | |
GetWriteBufferSize(Cardinal) | Reads the write buffer size. | |
Leave | Leaves the Bluetooth component protection critical section. (Inherited from TwclBluetoothComponent.) | |
SetCopy(TwclCustomConnection) | The method sets new copy of the current connection. (Inherited from TwclBluetoothComponent.) | |
SetReadBufferSize(Cardinal) | Sets the read buffer size. | |
SetWriteBufferSize(Cardinal) | Sets the write buffer size. | |
Write(Pointer,Cardinal,Cardinal) | Sends data to the connected device. |
Name | Description | |
---|---|---|
OnConnect | The event fires when a connection to a remote device has been completed (with or without success). | |
OnCreateProcessor | The event fires when connection to a remote device has been established with success to allow application provide a data processor for the connection. | |
OnData | The event fires when new data is received from the connected remote device. | |
OnDestroyProcessor | The event fires when connection to a remote device has been terminated. An application must destroy the Data Processor created for the connection. | |
OnDisconnect | The event fires when the remote connected device has been disconnected. |