TwclRfCommClient Class

The Bluetooth RFCOMM Client component.

Namespace: wclBluetooth
TComponent
  wclBluetooth.TwclBluetoothComponent
    wclBluetooth.TwclRfCommClient
type
 TwclRfCommClient = class(TwclBluetoothComponent)
 end;

The TwclRfCommClient type exposes the following members.

Show:
 NameDescription
Create(TComponent)

Creates new RFCOMM client component. (Overrides TwclBluetoothComponent.Create(TComponent).)

Destroy

Frees the component. (Overrides TwclBluetoothComponent.Destroy.)

Top
Show:
 NameDescription
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.

Top
Show:
 NameDescription
Connect(TwclBluetoothRadio)

Starts connecting to a remote Bluetooth device.

Disconnect

Disconnects from the connection remote device.

DoConnect(Integer)

Fires the OnConnect event.

DoCreateProcessor(TwclClientDataConnection)

Fires the OnCreateProcessor event.

DoData(Pointer,Cardinal)

Fires the OnData event.

DoDestroyProcessor(TwclClientDataConnection)

Fires the OnDestroyProcessor event.

DoDisconnect(Integer)

Fires the OnDisconnect event.

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.

Top
Show:
 NameDescription
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.

Top