C# Класс LitDev.LDBlueTooth

Показать файл Открыть проект

Открытые методы

Метод Описание
Connect ( ) : Primitive

Advanced feature. Connect an external device and service to the bluetooth USB stick. You must first Initialise, then set the device, service and encoding.

GetDevices ( ) : Primitive

Get a list of discovered bluetooth devices.

GetEncodings ( ) : Primitive

Advanced feature. Get a list of available encodings.

GetServices ( ) : Primitive

Advanced feature. Get a list of available service protocols.

Initialise ( ) : Primitive

Initialise a bluetooth USB stick and detect discoverable external devices. As devices come into or out of range the devices list is updated.

ReceiveData ( ) : Primitive

Advanced feature. Receive (fetch) data from a bluetooth device. The device must be Initialised and Connected. The encoding should also be set.

ReceiveFile ( Primitive fileName ) : Primitive

Receive (fetch) a file from an attached external bluetooth device. You must first Initialise, then set the device.

SendData ( Primitive data ) : Primitive

Advanced feature. Send data to a bluetooth device. The device must be Initialised and Connected. The encoding should also be set.

SendFile ( Primitive fileName ) : Primitive

Send a file to an attached external bluetooth device. You must first Initialise, then set the device.

initialise ( ) : bool

Приватные методы

Метод Описание
GetBluetoothDeviceInfo ( string name ) : BluetoothDeviceInfo
GetBluetoothServiceItem ( string name ) : BluetoothServiceItem
inRangeEvent ( object sender, BluetoothWin32RadioInRangeEventArgs e ) : void
outOfRangeEvent ( object sender, BluetoothWin32RadioOutOfRangeEventArgs e ) : void
setDevices ( ) : void
setServices ( ) : void

Описание методов

Connect() публичный статический Метод

Advanced feature. Connect an external device and service to the bluetooth USB stick. You must first Initialise, then set the device, service and encoding.
public static Connect ( ) : Primitive
Результат Primitive

GetDevices() публичный статический Метод

Get a list of discovered bluetooth devices.
public static GetDevices ( ) : Primitive
Результат Primitive

GetEncodings() публичный статический Метод

Advanced feature. Get a list of available encodings.
public static GetEncodings ( ) : Primitive
Результат Primitive

GetServices() публичный статический Метод

Advanced feature. Get a list of available service protocols.
public static GetServices ( ) : Primitive
Результат Primitive

Initialise() публичный статический Метод

Initialise a bluetooth USB stick and detect discoverable external devices. As devices come into or out of range the devices list is updated.
public static Initialise ( ) : Primitive
Результат Primitive

ReceiveData() публичный статический Метод

Advanced feature. Receive (fetch) data from a bluetooth device. The device must be Initialised and Connected. The encoding should also be set.
public static ReceiveData ( ) : Primitive
Результат Primitive

ReceiveFile() публичный статический Метод

Receive (fetch) a file from an attached external bluetooth device. You must first Initialise, then set the device.
public static ReceiveFile ( Primitive fileName ) : Primitive
fileName Primitive The location to save the received file.
Результат Primitive

SendData() публичный статический Метод

Advanced feature. Send data to a bluetooth device. The device must be Initialised and Connected. The encoding should also be set.
public static SendData ( Primitive data ) : Primitive
data Primitive A string of characters to send.
Результат Primitive

SendFile() публичный статический Метод

Send a file to an attached external bluetooth device. You must first Initialise, then set the device.
public static SendFile ( Primitive fileName ) : Primitive
fileName Primitive The file to send.
Результат Primitive

initialise() публичный статический Метод

public static initialise ( ) : bool
Результат bool