Nedap.HandheldApi
Public Member Functions | Properties | Events
Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort Class Reference

This class provides Bluetooth Serial Port functionality implemented with 32feet.net library. It can be used to automatically discover available !D Hand devices, pair an connect to one of these, without user interaction. More...

Inheritance diagram for Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort:
Nedap.HandheldApi.CommunicationQueue.ICommunicationPort

List of all members.

Public Member Functions

 BluetoothCommunicationPort ()
 Constructor.
bool Connect ()
 Connect to the discovered reader.
bool Disconnect ()
 Disconnect from reader.
int WriteData (byte[] buffer, int offset, int length)
 Writes data to reader.
int ReadData (byte[] buffer, int offset, int length)
 Reads data from reader.
void Dispose ()
 Dispose.

Properties

bool Connected [get]
 Retrieves if connection to reader is established.

Events

EventHandler
< MultipleHandheldsFoundEventArgs
OnMultipleHandheldsFound
 This event is trigered when during device discovery more than one !D Hand is found.
EventHandler OnDataReceived
 This event is trigered when data are received form reader.

Detailed Description

This class provides Bluetooth Serial Port functionality implemented with 32feet.net library. It can be used to automatically discover available !D Hand devices, pair an connect to one of these, without user interaction.


Constructor & Destructor Documentation

Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort.BluetoothCommunicationPort ( )

Constructor.


Member Function Documentation

bool Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort.Connect ( )

Connect to the discovered reader.

Returns:

Implements Nedap.HandheldApi.CommunicationQueue.ICommunicationPort.

bool Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort.Disconnect ( )

Disconnect from reader.

Returns:

Implements Nedap.HandheldApi.CommunicationQueue.ICommunicationPort.

void Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort.Dispose ( )

Dispose.

int Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort.ReadData ( byte[]  buffer,
int  offset,
int  length 
)

Reads data from reader.

Parameters:
buffer
offset
length
Returns:

Implements Nedap.HandheldApi.CommunicationQueue.ICommunicationPort.

int Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort.WriteData ( byte[]  buffer,
int  offset,
int  length 
)

Writes data to reader.

Parameters:
buffer
offset
length
Returns:

Implements Nedap.HandheldApi.CommunicationQueue.ICommunicationPort.


Property Documentation

bool Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort.Connected [get]

Retrieves if connection to reader is established.

Implements Nedap.HandheldApi.CommunicationQueue.ICommunicationPort.


Event Documentation

EventHandler Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort.OnDataReceived

This event is trigered when data are received form reader.

Implements Nedap.HandheldApi.CommunicationQueue.ICommunicationPort.

EventHandler<MultipleHandheldsFoundEventArgs> Nedap.HandheldApi.CommunicationPort.BluetoothCommunicationPort.OnMultipleHandheldsFound

This event is trigered when during device discovery more than one !D Hand is found.