C# 클래스 LitDev.LDBlueTooth

파일 보기 프로젝트 열기: litdev1/LitDev

공개 메소드들

메소드 설명
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