Wireless Communication Library

.NET Edition
WCLBLUETOOTHAPI....................................................................................................10
WCLTRANSPORT..........................................................................................................10
WCLAPI...........................................................................................................................10
Methods........................................................................................................................................................................10
Load..........................................................................................................................................................................10
Unload......................................................................................................................................................................10
IsBluetoothAPIExists...............................................................................................................................................11
IsTransportExists......................................................................................................................................................11
Properties.....................................................................................................................................................................11
Active.......................................................................................................................................................................11
Version.....................................................................................................................................................................11
Events...........................................................................................................................................................................11
AfterLoad.................................................................................................................................................................11
AfterUnload..............................................................................................................................................................12
OnChanged...............................................................................................................................................................12

WCLBLUETOOTHRADIO...............................................................................................12
Methods........................................................................................................................................................................12
GetAddress...............................................................................................................................................................12
GetConnectable........................................................................................................................................................12
GetDiscoverable.......................................................................................................................................................12
GetName..................................................................................................................................................................12
SetConnectable.........................................................................................................................................................13
SetDiscoverable........................................................................................................................................................13
SetName...................................................................................................................................................................13
Assign.......................................................................................................................................................................13
Properties.....................................................................................................................................................................13
API...........................................................................................................................................................................13

WCLBLUETOOTHRADIOS............................................................................................13
Methods........................................................................................................................................................................14
Add...........................................................................................................................................................................14
Clear.........................................................................................................................................................................14
Delete.......................................................................................................................................................................14
Assign.......................................................................................................................................................................14
Properties.....................................................................................................................................................................14
Count........................................................................................................................................................................14
Items.........................................................................................................................................................................14

WCLBLUETOOTHSERVICE..........................................................................................15

Methods........................................................................................................................................................................15
Assign.......................................................................................................................................................................15
Properties.....................................................................................................................................................................15
Channel....................................................................................................................................................................15
Comment..................................................................................................................................................................15
Handle......................................................................................................................................................................15
Name........................................................................................................................................................................15
UUID........................................................................................................................................................................16

WCLBLUETOOTHSERVICES........................................................................................16
Methods........................................................................................................................................................................16
Add...........................................................................................................................................................................16
Clear.........................................................................................................................................................................16
Delete.......................................................................................................................................................................16
Assign.......................................................................................................................................................................16
Properties.....................................................................................................................................................................17
Count........................................................................................................................................................................17
Items.........................................................................................................................................................................17

WCLBLUETOOTHDEVICE.............................................................................................17
Methods........................................................................................................................................................................17
GetClassOfDevice....................................................................................................................................................17
GetName..................................................................................................................................................................17
GetPaired..................................................................................................................................................................17
EnumServices...........................................................................................................................................................18
Pair...........................................................................................................................................................................18
Unpair.......................................................................................................................................................................18
Assign.......................................................................................................................................................................18
DecodeCOD.............................................................................................................................................................18
Properties.....................................................................................................................................................................18
Address.....................................................................................................................................................................18

WCLBLUETOOTHDEVICES..........................................................................................19
Methods........................................................................................................................................................................19
Add...........................................................................................................................................................................19
Clear.........................................................................................................................................................................19
Delete.......................................................................................................................................................................19
Assign.......................................................................................................................................................................19
Properties.....................................................................................................................................................................19
Count........................................................................................................................................................................19
Items.........................................................................................................................................................................20

WCLBLUETOOTHDISCOVERY.....................................................................................20
Methods........................................................................................................................................................................20
Discovery.................................................................................................................................................................20
EnumRadios.............................................................................................................................................................20
Terminate.................................................................................................................................................................20
Properties.....................................................................................................................................................................20
Active.......................................................................................................................................................................20

Events...........................................................................................................................................................................21
OnDiscoveryComplete.............................................................................................................................................21
OnDiscoveryStarted.................................................................................................................................................21

WCLERRORS.................................................................................................................21
WCLIRDADEVICE..........................................................................................................25
Properties.....................................................................................................................................................................25
Name........................................................................................................................................................................25
Address.....................................................................................................................................................................25

WCLIRDADEVICES........................................................................................................25
Methods........................................................................................................................................................................25
Add...........................................................................................................................................................................25
Clear.........................................................................................................................................................................25
Delete.......................................................................................................................................................................26
Properties.....................................................................................................................................................................26
Count........................................................................................................................................................................26
Items.........................................................................................................................................................................26

WCLIRDADISCOVERY...................................................................................................26
Methods........................................................................................................................................................................26
Discovery.................................................................................................................................................................26
Terminate.................................................................................................................................................................26
Properties.....................................................................................................................................................................27
Active.......................................................................................................................................................................27
Events...........................................................................................................................................................................27
OnComplete.............................................................................................................................................................27
OnStarted..................................................................................................................................................................27

WCLSERIALDEVICE......................................................................................................27
Properties.....................................................................................................................................................................27
FriendlyName...........................................................................................................................................................27
Modem.....................................................................................................................................................................28
Port...........................................................................................................................................................................28

WCLSERIALDEVICES....................................................................................................28
Methods........................................................................................................................................................................28
Add...........................................................................................................................................................................28
Clear.........................................................................................................................................................................28
Delete.......................................................................................................................................................................28
Properties.....................................................................................................................................................................29
Count........................................................................................................................................................................29
Items.........................................................................................................................................................................29

WCLSERIALDISCOVERY..............................................................................................29
Methods........................................................................................................................................................................29

............................................................................................................................................30 WCLBUFFERS...................................................31 ReadBuffer.................................................................................................................................................................................................................30 OnFound............................................................................................................................................33 Properties...........................31 WCLCLIENTBLUETOOTHPARAMS.........................................................................................................................................................................................................................................................................................................................33 NineWire..........................................................................................29 StartMonitoring............................................................................................................................................................................................30 Events.................................................................................................................................................................................................................................................................................................................................35 ByteSize......................................................31 Channel..........................................................................................................................................................................................32 Encryption....................................................33 Service...............................................31 WriteBuffer................................................................................30 Monitoring..............................................................................................................32 Radio..............................................................................................................................................................................................................................................32 WCLCLIENTIRDAPARAMS........................................................................................33 Address...........................................................................................................................................................................................................................34 Properties.33 WCLBYTESIZE.............................................................................................................................................................30 OnStopped.....................35 BaudRateValue.....................30 Properties..............................................................................................................................................................................................................................................36 .................................................................................................................................................................................................................................................35 BaudRate...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................34 WCLCLIENTSERIALPARAMS.......................................................................................35 StopBits...............................................................35 Parity.35 Port..................................................32 Service...............................................................................................................................................................................................................................................................................................................................................29 Stop Monitoring...........................................................31 Properties......................................................................................................EnumDevices.........................................................................................................................................................................................................................................................................................................34 WCLSTOPBITS..........................................................................................................................................................................................................................30 OnLost.............................................................................................................36 WCLCLIENTSTATE............................................................................................................................31 Properties.......................................................................................................................31 Authentication..............................................................................................................................................................................................................................................................................................................................................................................................32 Address.......................................................33 WCLBAUDRATE......................34 WCLPARITY......................................................................................................................................................30 OnStarted...................................

..........................................................................................................................................................................................................................................................................................................................................................................................................37 ConnectTimeout..........................................................................................................................................................................................................................................................37 Buffers................41 AddPermission.........................................................................42 Size...................................42 Name..............43 ..........................................................................................................................................40 WCLFILESYSTEMOBJECTPERMISSION.......................................................................................................................................................................37 Properties....................................................................................................................................................................................40 WhoAsString...............................................................................................................................................................................................................................................................................................................41 ModifyDateTime.........................................................................................36 WCLCLIENT...........................................................................................................................................................................................................................40 WCLFILESYSTEMOBJECTTYPE...........................................................................40 Who......................................................................................................................................................39 TargetAsString...............................................39 Timeout..................................................................................38 OnDisconnect.............................................................................................36 Write.........................................................................................................................39 WCLCLIENTOBEXPARAMS.42 Clear..............................................................................................................................................................................................................................................37 IrDAParams..................................................................................................................................................................................................................41 Properties............................................................................38 OnData...........38 Events................................................................................................................................................................................................................................................................................38 OnConnect....................................................36 Methods......39 PacketSize.............................................................................................................................................................................................................................................................................................................................................................................................42 Methods..............................................................................................................................................................................................................................................42 ObjectType..........................................................................................................................................................................................................................................................................................................................................38 SerialParams..............................................................41 CheckPermission.................................................................................................41 Methods.................................36 Connect....................37 Disconnect.................................................................................................................................................................................................................................................................................................................39 Properties............................................37 State.........................................................................................................................................42 Add...........................40 WCLFILESYSTEMOBJECT...............................................................................................................................................................................................................................................................................................................................................................................................................................................42 WCLFILESYSTEMOBJECTS.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................39 Target...........................................43 Delete..............................................................................................................................................................................................................................................................................41 RemovePermission.................37 BluetoothParams...................................................................41 CreateDateTime...........................WCLCLIENTTRANSPORT................................................................................................38 Transport........................................................................

.....................................................................................................................................................48 OnOBEXGetComplete...........................................................................................45 Properties.......................................................................................................................................................................................................................................................................................................................................49 Connect........................................................................................................46 SerialParams..47 OnOBEXProgress..................47 Events...................................................48 OnOBEXDisconnect................................................................................................................................................................................................................................................................................................................................................................................50 Delete............................................................................................................................................................................................................................................................................................................46 BluetoothParams...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................48 WCLFTPCLIENT...............................................................................................................................................................................................................50 OBEXState..................................................................................................................................................................49 Terminate...................................................................................................................................................................................................................................................................................................43 Items................................................................................................................................................47 OnDisconnect.......................................................................................................................................................................................................................................................................................................50 OBEXParams.......................................................................................................................................44 Disconnect....................................................................................50 Dir..................................47 OnConnect.............................................................................................46 Buffers............................44 OpenOBEXSession....49 Get........................................................................................................................................................................45 OBEXState.......................................................45 OBEXOperation...................................................................................44 Methods.............................................................................................................................................................................................................49 OpenOBEXSession..........................................................................................................................................................................................................45 OBEXParams...............................................................................44 CloseOBEXSession.........................................................................................................................................................................45 Get...............................................45 Connect.....................................................................................................................46 ConnectTimeout.......................48 OnOBEXConnect.............50 MakeDir..................................................................................................50 Properties............................................................................................................................................51 OBEXOperation........................................................................................................................................................................................................................49 Put...........................................................................51 ............................................................................................................................................................................................................................................................47 OnOBEXPutComplete...49 Methods.......................................................................................................................................................................................................43 Count..........................................................................................................................................................................................................................................................................................................................................................................................................................................50 SetPath............................46 State.....................................................................................................49 Disconnect..........................................................................................................43 WCLOBEXOPERATION.....................................................................................................................................................................................................................................................................................................................43 WCLOPPCLIENT.......................................................................................................................................................................43 WCLOBEXSTATE...............................................................................................................................................Properties......................................................................................................................................................................................................................................................................................................................44 Put.........................49 CloseOBEXSession...........................44 Terminate....................................................................................................................................................................................................................................................................................................................................................46 IrDAParams........................45 Transport.................................................................................................................................

................................................54 OnOBEXDirComplete..................................................................53 OnOBEXDisconnect..........................................................59 OnStopped..53 OnOBEXGetComplete..............53 OnOBEXProgress........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Transport.....................................................................................................................................58 MaxConnections....................................................................................................................................................60 .....................52 BluetoothParams............55 Methods.......................................................................................................................................................................................................................................................................................................................................................................................58 Events...............................................................................................................................................................56 Active................................................................................................................................................................54 OnOBEXMakeDirComplete..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................53 OnOBEXPutComplete........................................53 OnOBEXConnect.....................................................................................................................................................................................55 OnOBEXSetPathComplete..............................................52 Buffers...........................................................................................................................................................................................................................................................................................................................................................58 DiscoveryTimeout..............................................................................................................................................................................................................................................................57 Properties..........................................................................................................................................................................................................................................................................................................................................58 SendRadio.....................................................................................57 Timeout....................................................................52 OnDisconnect..................................................59 OnStopDelay..................59 OnStarted....................................................................................................................................................................................................................................................................................................52 State.....................................................................................................................................60 OnSendComplete................................................................56 Events..........................................................................................................................52 OnConnect.......................................59 OnStartSleep....56 Methods..................................................................................59 OnStopSleep...............57 Stop..................................56 Radio........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................55 WCLAUTHENTICATOR....................................................................................................................................................................................................................................................................................................................................................51 SerialParams.........................................................57 SleepInterval.............................................................................................................................................................................................................52 Events.................................................................................................................................................................................................................................................................................59 OnStartDeay........55 Properties...................................................................................................59 OnSendStart....................................................................................................................................................................................................................................................58 Active.........................................................................................60 OnProgress...............51 IrDAParams....57 Start...........................................................................................................................................................................................................................56 OnPINRequest.........................................................................55 Open...............................................................................................................................................57 Secure...................................................................................................................57 SendDelay.....................................................................................................................51 ConnectTimeout..........................................................................................................................................55 Close..............................................................................56 WCLPROXIMITYSENDER.....................................................................................................................................................................................................................................................................................................................................................................................................................................................58 DiscoveryRadio....................................................54 OnOBEXDeleteComplete...........................................................................................................................................................................................

.......................................................................................................................................................................................................................................................................OnGetFiles.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................63 Authentication..........................................................64 Methods.63 Channel....................60 OnFileSendStarted..................................................................................................................................................................................................................................................................................................................................................................................................63 Service......................................................................................................66 Events..................................62 WCLSERVERTRANSPORT..................................................................................................................................65 Write............................................................................................................................................................................................................................................................................62 OnAcceptDevice.................................63 Name...........65 DeviceName...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................66 Transport.......................67 OnListen................................................................................................................................................................................................................................................................................................................................................63 Radio.............................................................................................................................................................................................................................................................................66 OnConnected................................................68 ......................................................................................................................................................................................64 Properties.........................................................................................................................................................................................................................................................65 Address..............................................63 Properties............................................................65 State...............................................................................................................................................................................................................................61 OnDevicesFound....................................................................................64 NineWire......................62 WCLSERVERBLUETOOTHPARAMS.....................61 OnDiscoveryStarted.............................................................................................................................................................................................................................63 Encryption..............................................................61 OnDiscoveryComplete............................................................67 OnDisconnected.........................65 Properties..............................68 Listen................................................................................................................................................................................................................................................66 Buffers..........................................................................................................................................66 OnClosed...........67 WCLOPPSERVER.......................................................61 OnFileSendComplete.............................................................................................................................................................................................................................................................................................................................................................................................................................................................................67 Methods......................64 WCLSERVERIRDAPARAMS............................................................................64 WCLSERVER.........................................................................................65 BluetoothParams...............................................68 Terminate..........................................................................................................................................................................67 Close...................................................................64 Close...................................................................................................................................................................................................................66 IrDAParams........................................................................................................................................................................................................................................................................................64 Service.............................................65 Listen.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................67 OnData...............................................................................................................................................62 WCLSERVERSTATE..............................

............................................................................................................................................................................72 Toy............................................................................................................................................................................................................................................71 Computers.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................70 OnListen...................................................................69 OnClosed...........................................................................................................................................................68 DeviceName...............................................................................................................................................................................68 BluetoothParams..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................69 Transport.......70 OnOBEXObjectReceived..........................................................................68 Address......................................................................................................................................................................................................71 Phones................................................................................72 LAN....................................69 IrDAParams.........................................................................69 ObjectName..............................................................................................72 Imaging............................................................................................................................................................................................................................................69 Events.................................................................................................................................................................................................................................................................73 ................................69 Buffers.........71 Audio............Properties.........................71 Miscellaneous.....................................................................70 OnConnected...................................................................................68 State.........................................................................................................................................................................................................................................................................................................73 Others...................................................................................................................................70 OnDisconnected...............................................................................................................................................................................................72 Wearable..........................................................................................................................................................................................................................71 Peripheral..........................................................................................................................................70 OnOBEXProgress...............................................................................................................................................................................................................70 WCLCLASSOFDEVICE...

Application uses WCL must have at least one instance of the wclAPI class. trActiveSync trBluetooth trIrDA trSerial trUSB trWiFi Microsoft ActiveSync Bluetooth (see wclBluetoothAPIX) IrDA Serial ports USB WiFi wclAPI wclAPI class is the main class of the library. . Otherwise it returns one of the error codes (see wclErrors for more details). Application must call this method after finished using the library. Methods Load Int32 Load() This method loads low-level transports and APIs. Application must call this method before using any other methods or classes of the library. baBlueSoleil baMicrosoft baToshiba baWidComm BlueSoleil Bluetooth drivers Microsoft Bluetooth drivers Toshiba Bluetooth drivers WidComm Bluetooth drivers wclTransport wclTransport enumeration represents supported transports. If the method completes with success it returns WCL_E_SUCCESS. Unload Int32 Unload() This method unloads low-level transports and APIs.wclBluetoothAPI wclBluetoothAPI enumeration represents supported Bluetooth APIs. wclAPI manages low-level transports and drivers.

IsTransportExists Boolean IsTransportExists(wclTransport Transport) The method returns true if specified transport is available. Events AfterLoad void AfterLoad(object sender. . IsBluetoothAPIExists Boolean IsBluetoothAPIExists(wclBluetoothAPI API) The method returns true if the specified Bluetooth API was detected and available for use. Version String Version Read-Only The property returns current library’s version. otherwise it is false. Properties Active Boolean Active Read-Only The Active property is true if API is loaded. Otherwise it returns false.If the method completes with success it returns WCL_E_SUCCESS. EventArgs e) The event fires after low-level drivers and APIs were loaded and ready. Otherwise it returns one of the error codes (see wclError for more details).

If the method completes with success it returns WCL_E_SUCCESS. Otherwise it returns one of the error codes and Address parameter is undefined. wclBluetoothRadio The wclBluetoothRadio class represents local Bluetooth radio module (dongle). If the method completes with success it returns WCL_E_SUCCESS. If the method completes with success it returns WCL_E_SUCCESS. EventArgs e) The event fires when configuration of low-level drivers and/or APIs was changed. GetName Int32 GetName(ref String Name) . GetDiscoverable Int32 GetDiscoverable(ref Boolean Discoverable) The method reads discoverable state of the dongle and stores it into the Discoverable parameter. OnChanged void OnChanged(object sender. EventArgs e) The event fires after low-level drivers and APIs were unloaded.AfterUnload void AfterUnload(object sender. Methods GetAddress Int32 GetAddress(ref String Address) The method reads address of the local dongle and stores it into the Address parameter. GetConnectable Int32 GetConnectable(ref Boolean Connectable) The method reads connectable state of the dongle and stores it into the Connectable parameter.

Assign void Assign(wclBluetoothRadio Radio) The method copies one instance of the wclBluetoothRadio object into current one. SetName Int32 SetName(String Name) The method sets the name of the dongle.The method reads name of the local dongle and stores it into the Name parameter. If the method completes with success it returns WCL_E_SUCCESS. Properties API wclBluetoothAPI API Read-Write The property manages the drivers (Bluetooth API) used by the dongle. If the method completes with success it returns WCL_E_SUCCESS. wclBluetoothRadios The wclBluetoothRadios class represents list of local Bluetooth dongles. If the method completes with success it returns WCL_E_SUCCESS. SetDiscoverable Int32 SetDiscoverable(Boolean Discoverable) The method sets discoverable mode of the dongle. SetConnectable Int32 SetConnectable(Boolean Connectable) The method sets a connectable state of the dongle. If the method completes with success it returns WCL_E_SUCCESS. .

. Properties Count UInt32 Count Read-Only The property returns the number of radios in the list. Clear void Clear() The method clears the list.Methods Add void Add(wclBluetoothRadio Radio) The method adds Radio object to the list. Items wclBluetoothRadio default[UInt32 Index] Read-Only The property returns Radio object by its Index. Assign void Assign(wclBluetoothRadios Radios) The method copies one instance of the wclBluetoothRadios object into current one. Delete void Delete(UInt32 Index) The method deletes the radio with given Index from the list.

Properties Channel unsigned Byte Channel Read-Only The property contains the service’s RFCOMM channel number. Comment String Comment Read-Only The property contains the service’s comments.wclBluetoothService The class represents Bluetooth service. Usually it is empty. Methods Assign void Assign(wclBluetoothService Service) The method copies one instance of the wclBluetoothService into current one. Handle UInt32 Handle Read-Only The property contains service’s service record handle. Name String Name . Not all services have RFCOMM channel number.

Methods Add void Add(wclBluetoothService Service) The method adds a service object to the list. . Assign void Assign(wclBluetoothServices Services) The method copies one instance of the wclBluetoothServices class into the current one.Read-Only The property contains the service’s name. Clear void Clear() The method clears the list. UUID Guid UUID Read-Only The property contains the service’s UUID. wclBluetoothServices The class represents a list of Bluetooth services. Delete void Delete(UInt32 Index) The method deletes a service object with given Index from the list.

GetName Int32 GetName(wclBluetoothRadio Radio. If the method completes with success it returns WCL_E_SUCCESS. The operation will perform on the specified Radio.Properties Count UInt32 Count Read-Only The property returns items count in the list. ref String Name) The method reads the name of the remote device with using specified Radio. wclBluetoothDevice The class represents a remote Bluetooth device. . GetPaired Int32 GetPaired(wclBluetoothRadio Radio. ref UInt32 COD) The method reads Class Of remote Device (COD). Methods GetClassOfDevice Int32 GetClassOfDevice(wclBluetoothRadio Radio. Items wclBluetoothService default[UInt32 Index] Read-Only The property returns a wclBluetoothService object from the list by its Index. ref Boolean Paired) The method checks if the remote Bluetooth device is paired with local Bluetooth Radio. If the method completes with success it returns WCL_E_SUCCESS.

wclBluetoothServices Services.EnumServices Int32 EnumServices(wclBluetoothRadio Radio. If the UUID parameter is a service’s UUID the method enumerates (checks) only specified service. Properties Address String Address Read-Write . Guid UUID) The method enumerates services on the remote device with using specified Radio. DecodeCOD wclClassOfDevice DecodeCOD(UInt32 COD) The method decodes COD to readable format. The Services parameter must be a valid wclBluetoothServices object. Assign void Assign(wclBluetoothDevice Device) The method copies one instance of the wclBluetoothDevice object into the current one. If the UUID parameter is null the method enumerates all services. The method can be used for checking availability of the remote device by querying its services. Unpair Int32 Unpair(wclBluetoothRadio Radio) The method unpairs the local Bluetooth Radio and the remote device. Pair Int32 Pair(wclBluetoothRadio Radio. The method fills it with services list. String PIN) The method pairs local Bluetooth Radio with the remote device using specified PIN.

Properties Count UInt32 Count Read-Only The property returns items count in the list. Assign void Assign(wclBluetoothDevices Devices) The method copies one instance of the wclBluetoothDevices class into the current one. . Methods Add void Add(wclBluetoothDevice Device) The method adds a wclBluetoothDevice object to the list. Delete void Delete(UInt32 Index) The method deletes a wclBluetoothDevice object from the list by its Index. Clear void Clear() The method clears the list.The property contains an address of the remote device. wclBluetoothDevices The class represents a list of remote Bluetooth devices.

wclBluetoothDiscovery The class allows your application to enumerate (discover) remote Bluetooth devices. unsigned Byte Timeout) The method starts discovering for remote Bluetooth devices on the given local Bluetooth radio module. Properties Active Boolean Active Read-Only The property returns true if discovering is active. . The Radios parameter must be valid wclBluetoothRadios object. Terminate Int32 Terminate() The method terminates discovering procedure. EnumRadios Int32 EnumRadios(wclBluetoothRadios Radios) The method enumerates installed dongles and fills the Radios parameter.Items wclBluetoothDevice default[UInt32 Index] Read-Only The property returns a wclBluetoothDevice object from the list by its Index. Methods Discovery Int32 Discovery(wclBluetoothRadio Radio. The Timeout parameter indicates how long discovering should execute.

wclBluetoothDiscoveryCompleteEventArgs e) The event fires when discovering for remote devices is completed. wclBluetoothDiscoveryStartedEventArgs e) The event fires when discovering for remote devices is started. The Radio parameter is the wclBluetoothRadio object indicates a dongle on which discovering was performed. If the discovering was complete with success the Devices parameter is a valid wclBluetoothDevices object contains a list of founded devices. The Radio parameter represents a dongle on which the discovering is executing.Events OnDiscoveryComplete public class wclBluetoothDiscoveryCompleteEventArgs : public EventArgs { public wclBluetoothRadio Radio. public wclBluetoothDevices Devices. OnDiscoveryStarted public class wclBluetoothDiscoveryStartedEventArgs : public EventArgs { public wclBluetoothRadio Radio. wclErrors The class contains all possible error codes: Constant Value WCL_E_SUCCESS 0 WCL_E_OUT_OF_RESOURCE 1 WCL_E_INTERNAL 2 WCL_E_NOT_IMPLEMENTED 3 WCL_E_FEATURE_NOT_SUPPORTED 4 WCL_E_INVALID_ARGUMENT 5 Description Operation complete success Out of system resources Low-level driver internal error Feature is not implemented yet Feature is not supported Invalid argument . If the discovering wad done with error the Devices parameter is null. } void OnDiscoveryComplete(object sender. } void OnDiscoveryStarted(object sender.

WCL_E_API_LOADED 10 WCL_E_API_EXIST 11 WCL_E_API_NOT_LOADED 12 WCL_E_TRANSPORT_NOT_AVAILABLE 13 WCL_E_BLUETOOTH_API_NOT_AVAILABLE 14 WCL_E_DISCOVERY_NOT_STARTED 20 WCL_E_DISCOVERY_ACTIVE 21 WCL_E_ALREADY_PAIRED WCL_E_AUTHENTICATION_FAILED 30 31 WCL_E_CANCELLED_BY_USER 32 WCL_E_ACCESS_DENIED 33 WCL_E_NOT_CONNECTED 40 WCL_E_CONNECTION_ACTIVE 41 WCL_E_CONNECTION_EXISTS 42 WCL_E_TIMEOUT 43 WCL_E_SERVICE_NOT_FOUND 44 WCL_E_UNABLE_CONNECT 45 WCL_E_CONNECTION_REJECTED 46 WCL_E_CONNECTION_TERMINATED 47 Transports and APIs is already loaded Other instance of the wclAPIX already exists and is loaded Transports and APIs is not loaded Specified transport is not available Specified Bluetooth API is not available Discovery operation was not started when the application called Terminate method Discovery operation is active Device already paired Authentication failed Operation was cancelled by remote device or remote device’s user Access denied by remote device There is no active connection to the remote device Connection is active Connection already exists Time out Specified service was not found on target device or is not supported Unable to connect to remote device. Unknown internal error in low-level driver Remote device rejected the connection request Connection was closed by remote device during OBEX operation (device is out .

unable to start other OBEX operation OBEX session was not established There is no active OBEX operation .of range or turned off) WCL_E_OBEX_ACTIVE 100 WCL_E_OBEX_OPERATION_IN_PROGRESS 101 WCL_E_OBEX_NOT_ACTIVE 102 WCL_E_OBEX_NO_CONTENT 103 WCL_E_OBEX_OPERATION_NOT_ACTIVE 104 WCL_E_OBEX_RESET_CONTENT WCL_E_OBEX_NON_AUTHORITATIVE WCL_E_OBEX_PARTIAL_CONTENT WCL_E_OBEX_MULTIPLE_CHOISES WCL_E_OBEX_MOVED_PERMANENTLY WCL_E_OBEX_MOVED_TEMPORARY WCL_E_OBEX_SEE_OTHER WCL_E_OBEX_NOT_MODIFIED WCL_E_OBEX_USE_PROXY WCL_E_OBEX_BAD_REQUEST WCL_E_OBEX_UNAUTHORIZED WCL_E_OBEX_PAYMENT_REQUIRED WCL_E_OBEX_FORBIDDEN WCL_E_OBEX_NOT_FOUND WCL_E_OBEX_METHOD_NOT_ALLOWED WCL_E_OBEX_NOT_ACCEPTABLE WCL_E_OBEX_PROXY_AUTHENTICATION_REQUIRED WCL_E_OBEX_REQUEST_TIME_OUT WCL_E_OBEX_CONFLICT WCL_E_OBEX_GONE WCL_E_OBEX_LENGTH_REQUIRED WCL_E_OBEX_PRECONDITION_FAILED WCL_E_OBEX_REQUIESTED_ENTITY_TOO_LARGE WCL_E_OBEX_REQUEST_URL_TOO_LARGE WCL_E_OBEX_UNSUPPORTED_MEDIA_TYPE WCL_E_OBEX_INTERNAL_SERVER_ERROR WCL_E_OBEX_NOT_IMPLEMENTED WCL_E_OBEX_BAD_GATEWAY WCL_E_OBEX_SERVICES_UNAVAILABLE WCL_E_OBEX_GATEWAY_TIME_OUT WCL_E_OBEX_HTTP_VERSION_NOT_SUPPORTED WCL_E_OBEX_DATABASE_FULL WCL_E_OBEX_DATABASE_LOCKED WCL_E_OBEX_UNKNOWN 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 199 OBEX session already established OBEX operation is in progress.

WCL_E_AUTHENTICATOR_ACTIVE 200 WCL_E_AUTH_UNABLE_REGISTER_CALLBACK 201 WCL_E_USB_MONITOR_ACTIVE 300 WCL_E_PROXIMITY_SENDER_ACTIVE 400 WCL_E_PROXIMITY_SENDER_RUNNING 401 WCL_E_PROXIMITY_INVALID_SEND_RADIO 402 WCL_E_PROXIMITY_INVALID_DISCOVERY_RADIO 403 WCL_E_PROXIMITY_FILE_UNAVAILABLE 404 WCL_E_GSM_ERROR_EXECUTE_AT_COMMAND 500 WCL_E_GSM_UNKNOWN_AT_RESULT 501 WCL_E_GSM_OPERATION_IN_PROGRESS 502 WCL_E_WIFI_MANAGER_ACTIVE 600 WCL_E_WIFI_MANAGER_NOT_ACTIVE 601 WCL_E_WIFI_MANAGER_EXISTS 602 WCL_E_WIFI_MANAGER_NOT_FOUND 603 WCL_E_WIFI_NO_DATA 604 WCL_E_WIFI_UNABLE_SET_CALLBACK 605 wclAuthenticatorX component is already opened for specified API Unable setup PIN request handler USB Monitor is already active Proximity Sender is running Other instance of the wclProximitySenderX component is already running on the same radio Send Radio was not specified Discovery Radio was not specified The specified file is not available or Proximity Sender cann’t read the file General error while executing AT command Unknown response on AT command Other AT command is executing WiFi Manager is already active (Opened) WiFi Manager is not active (Opened) Other instance of the wclWiFiManager is already active WiFi Manager was not found Operation was completed with success but no data was returned Unable to set callback function for WiFi notifications .

WCL_E_MONITORING_ACTIVE wclIrDADevice The class represents an IrDA device. Address String Address Read-Only The property contains the address of an IrDA device. wclIrDADevices The class represents a list of IrDA devices. Methods Add void Add(wclIrDADevice Device) The method adds Device to the list. Properties Name String Name Read-Only The property contains the name of an IrDA device. Clear void Clear() 700 Monitoring for serial devices is already started .

The method clears the list.

Delete
void Delete(UInt32 Index)
The method deletes a device from the list by its Index.

Properties
Count
UInt32 Count
Read-Only
The property returns items count in the list.

Items
wclIrDADevice default[UInt32 Index]
Read-Only
The property returns wclIrDADevice object from the list by its Index.

wclIrDADiscovery
The class allows your application to discover IrDA devices.

Methods
Discovery
Int32 Discovery()
The method starts discovering for IrDA devices.

Terminate
Int32 Terminate()

The method terminates discovering for IrDA devices.

Properties
Active
Boolean Active
Read-Only
The property returns true if discovering is executing.

Events
OnComplete
public class wclIrDACompleteEventArgs : public EventArgs
{
public wclIrDADevices Devices;
}
void OnComplete(object sender, wclIrDACompleteEventArgs e)
The event fires when discovering is completed. The Devices parameter is a valid
wclIrDADevices list with founded devices. If the method completes with error then Devices
parameter is null.

OnStarted
void OnStarted(object sender, EventArgs e)
The event fires when discovering was started.

wclSerialDevice
The class represents serial port.

Properties
FriendlyName

String FriendlyName
Read-Only
The property returns a serial port friendly name (as it shown in Device Manager)

Modem
Boolean Modem
Read-Only
The property returns true if this serial port is associated with modem.

Port
UInt32 Port
Read-Only
The property returns a serial port number.

wclSerialDevices
The class represents a list of serial ports.

Methods
Add
void Add(wclSerialDevice Device)
The method adds a device to the list.

Clear
void Clear()
The method clears the list.

Delete
void Delete(UInt32 Index)

.The method deletes a device from the list by its Index. Properties Count UInt32 Count Read-Only The property returns devices count in the list. wclSerialDiscovery The class enumerates serial ports on PC. Items wclSerialDevice default[UInt32 Index] Read-Only The property returns a device from the list by its index. The Devices parameter must be a valid wclSerialDevices object. If the method completes with success it returns WCL_E_SUCCESS. Methods EnumDevices Int32 EnumDevices(wclSerialDevices Devices) The method enumerates serial ports and fills the Devices list with wclSerialDevice objects. StartMonitoring Int32 StartMonitoring() The method starts monitoring for serial devices.

Properties Monitoring Boolen Monitoring Read-Only Returns True if monitoring is active. EventHandler e) The event fires when monitoring is stopped. EventHandler e) The event fires when monitoring is started. Events OnStarted void OnStarted(object sender.Stop Monitoring void StopMonitoring() The method stops monitoring for serial devices. wclSerialDeviceEventArgs e) The event fires when new serial device is found. OnFound public class wclSerialDeviceEventArgs public EventArgs { public: wclSerialDevice Device. }. void OnFound(object sender. OnLost . OnStopped void OnStopped(object sender.

WriteBuffer UInt32 WriteBuffer Read-Write The property manages a size of a write buffer. void OnLost(object sender. Application must never create this class directly. }. Properties Authentication .public class wclSerialDeviceEventArgs public EventArgs { public: wclSerialDevice Device. Application must never create object of this class and must never dispose objects of this class returned by reading properties of other classes. wclSerialDeviceEventArgs e) The event fires when old serial device is lost. Properties ReadBuffer UInt32 ReadBuffer Read-Write The property manages a size of a read buffer size. wclClientBluetoothParams This class manages parameters for a Bluetooth client connection. wclBuffers The class represents read and write buffers used for communication.

Encryption Boolean Encryption Read-Write The property manages connection data encryption.Boolean Authentication Read-Write This property sets authentication mode for the connection. Application must provide correct Radio. Radio wclBluetoothRadio Radio Read-Write The property contains Radio object used for establish a connection to a target device. If it is 0 then component will detect channel automatically by using service’s UUID. Channel Byte Channel Read-Write The property manages the RFCOMM channel number. Service . Address String Address Read-Write The property contains a remote device’s address to connect to. If Authentication is true then connection will require pairing. If a target device has more than 1 service with the same UUID you must provide correct channel number to avoid conflict.

A client will connect to specified service. Properties NineWire Boolean NineWire Read-Write The property manages NineWire mode for IrDA connection. wclClientIrDAParams The class contains parameters for a IrDA client connection. Service String Service Read-Write The property contains a IrDA service’s name. Address String Address Read-Write The property contains an address of a remote IrDA device to connect to. br110 br300 br600 110 baud 300 baud 600 baud .Guid Service Read-Write The service’s UUID in String representation. wclBaudRate This enumeration represents a serial port baud rate. Application must never create this class directly.

bs4 bs5 bs6 bs7 bs8 4 bits 5 bits 6 bits 7 bits 8 bits wclParity The enumeration represents a serial port’s parity. sb1 sb15 sb2 wclClientSerialParams 1 stop bit 1.BaudRateValue property) wclByteSize The enumeration represents a serial port Byte’s size.br1200 br2400 br4800 br9600 br14400 br19200 br38400 br56000 br57600 br115200 br128000 br256000 brCustom 1200 baud 2400 baud 4800 baud 9600 baud 14400 baud 19200 baud 38400 baud 56000 baud 57600 baud 115200 baud 128000 baud 256000 baud Custom baud rate (see wclClientSerialParams. paNone paOdd paEven paMark paSpace None Odd Even Mark Space wclStopBits The enumeration represents a serial port’s stop bits.5 stop bit 2 stop bits .

the BaudRate property contains brCustom. The property indicates actual baud rate. If the BaudRate property set to predefined baud rate (except brCustom) then this property contains its value (for example: BaudRate = br115200. ByteSize wclByteSize ByteSize Read-Write The property manages a serial client connection Byte size. Parity wclParity Parity Read-Write The property manages serial client connection parity.The class manages parameters for serial client connection. Port UInt32 Port Read-Write . Application must never create this class directly. Properties BaudRate wclBaudRate BaudRate Read-Write The property manages a serial connection baud rate. BaudRateValue = 115200). BaudRateValue UInt32 BaudRateValue Read-Write The property manages a serial client connection baud rate. If this property contains non standard baud rate.

ctBluetooth ctIrDA ctSerial Bluetooth client connection IrDA client connection Serial client connection wclClient The class implements a simple client connection. StopBits wclStopBits StopBits Read-Write The property manages a serial port stop bits. If the method completes with success it returns WCL_E_SUCCESS. csDisconnected csConnecting csConnected csDisconnecting Client is disconnected Client is connecting to a remote device Client is connected Client is disconnecting from remote device wclClientTransport The enumeration represents a transport used by a client connection. UInt32 Size) The method writes data (array of Byte) stored in Buffer parameter to a connection. . wclClientState The enumeration represents a client connection state.The property manages a serial port number used for connection. Methods Write Int32 Write(Byte[] Buffer.

ConnectTimeout UInt32 ConnectTimeout Read-Write . BluetoothParams wclClientBluetoothParams BluetoothParams Read-Only The property contains a wclClientBluetoothParams object which manages properties for Bluetooth connection. Properties State wclClientState State Read-Only The property contains a client’s connection state. Buffers wclBuffers Buffers Read-Only The property manages a read and a write buffers used for a data communication.Connect Int32 Connect() The method connects to a remote device with using specified transport. Disconnect void Disconnect() The method disconnects from a remote device.

public UInt32 Size. IrDAParams wclClientIrDAParams IrDAParams Read-Only The property manages IrDA parameters for a connection. OnConnect public class wclConnectEventArgs : public EventArgs { . wclDataEventArgs e) The event fires when data received from remote device. SerialParams wclClientSerialParams SerialParams Read-Only The property manages serial port parameters for a client connection. Events OnData public class wclDataEventArgs : public EventArgs { public Byte[] Data. The Buffer parameter is a one dimension array of Byte. } void OnData(object sender. Transport wclClientTransport Transport Read-Write The property manages a transport used for connection.The property manages a connect timeout value (in milliseconds).

EventArgs e) The event fires when remote device disconnects or after call of Disconnect() method. Properties PacketSize UInt16 PacketSize Read-Write The property manages the OBEX packet size used on PC side. OnDisconnect void OnDisconnect(object sender. wclClientOBEXParams The class represents parameters for OBEX based clients. Target String Target Read-Write . } void OnConnect(object sender. The Error parameter is WCL_E_SUCCESS if connection established with success or an error code if connection was not established. Application must never create this class directly.public Int32 Error. Timeout UInt32 Timeout Read-Write The property manages timeout for OpenOBEXSession() and Put() operations in milliseconds. wclConnectEventArgs e) The event fires when connect to a remote device is established.

WhoAsString Boolean WhoAsString Read-Write If the property is True then the Who property is a simple String. It usage depends on WhoAsString property’s value. wclFileSystemObjectType The enumeration represents the OBEX file system objects types. otFile otFolder File Directory (Folder) wclFileSystemObjectPermission The enumeration represents file system objects permissions. TargetAsString Boolean TargetAsString Read-Write If the property is True then the Target property is a simple String. opRead opWrite opDelete opCreate Object can be read Object can be written Object can be deleted Object can be created . If the property is False then the Target property is a String representation of GUID. Who String Who Read-Write The property manages OBEX WHO attribute. If the property is False then the Who property is a String representation of GUID. It may be encoded in two ways: the first way to use any String to identify the TARGET. The second way is to use GUID. How the component will use this value depends on TargetAsString property.The property manages the OBEX TARGET attribute.

that not all devices support this property. wclFileSystemObject The class represents a file system object of remote device. RemovePermission void RemovePermission(wclFileSystemObjectPermission Permission) The method removes the specified Permission from the object’s permissions list. Please note that it does not change any actual object’s permissions.opExecute Object can be executed Not all devices support permissions and not all permissions are possible for devices. . that it does not change any actual object’s permissions. Methods CheckPermission Boolean CheckPermission(wclFileSystemObjectPermission Permission) As Boolean The method checks the specified Permission and if it exists for the object the method returns True. Properties CreateDateTime DateTime CreateDateTime Read-Write The property contains an object’s creation date and time. Note. Please note. AddPermission void AddPermission(wclFileSystemObjectPermission Permission) The method adds the specified Permission to the object’s permissions list.

wclFileSystemObjects The class represents a file system objects list.ModifyDateTime DateTime ModifyDateTime Read-Write The property contains an object’s modification date and time. . Size UInt32 Size Read-Write The property contains an object’s size in Bytes (for otFile only). Name String Name Read-Write The property contains an object’s name. Methods Add void Add(wclFileSystemObject FileSystemObject) The method adds FileSystemObject into the list. ObjectType wclFileSystemObjectType ObjectType Read-Write The property indicates an object type.

Delete void Delete(UInt32 Index) The method deletes a object from the list by its index. Properties Count UInt32 Count Read-Only The property returns objects count in the list.Clear void Clear() The method clears the list. osDisconnected osConnecting osConnected osDisconnecting OBEX session is closed Opening OBEX session OBEX session is opened Closing OBEX session wclOBEXOperation The enumeration represents an OBEX operation. wclOBEXState The enumeration represents a state of the OBEX based clients. Items wclFileSystemObject default[UInt32 Index) Read-Only The property returns an object from the list by its index. ooNone No operation is executing .

. It is required to open an OBEX session before any other OBEX operations.ooOpenSession ooCloseSession ooPut ooGet ooDelete ooSetPath ooMakeDir ooDir ooTerminate Opening OBEX session Closing OBEX session Put is executing Get is executing Delete is executing SetPath is executing Creating directory Dir is executing Terminating current operation wclOPPClient The class is used for sending data to a target device with using OBEX Object Push Profile. The ObjectName parameter usually is a file name with extension and without path. It works for Put operation only and must be called only when Put is active. CloseOBEXSession Int32 CloseOBEXSession() The method closes an existing OBEX session. The object will be saved on a target device with ObjectName. Methods Put Int32 Put(String ObjectName. Terminate Int32 Terminate() The method terminates current sending operation. Stream Stream) The method send the object represented as a Byte array (Stream parameter) to a target device. OpenOBEXSession Int32 OpenOBEXSession() The method opens an OBEX session.

String MIME) The method requests the object with ObjectName from the remote device. Get Int32 Get(String ObjectName. Connect Int32 Connect() The method connects to the target device with using specified transport. OBEXOperation wclOBEXOperation OBEXOperation Read-Only The property returns the currently executing OBEX operation. Properties OBEXParams wclClientOBEXParams OBEXParams Read-Only The property contains the OBEXParams object. . The MIME parameter indicates the content MIME type.Disconnect void Disconnect() The method closes a connection to with a target device. OBEXState wclOBEXState OBEXState Read-Only The property contains the current component’s state.

IrDAParams wclClientIrDAParams IrDAParams Read-Only The property returns an instance of the wclClientIrDAParams object which allows you to manage settings for IrDA connection. ConnectTimeout UInt32 ConnectTimeout Read-Write The property manages connect timeout. Buffers wclBuffers Buffers Read-Only The property returns an instance of the wclBuffers object which allows you to manage buffers settings for send and receive operations.Transport wclClientTransport Transport Read-Write The property manages the transport used by the class to connect to a remote device. BluetoothParams wclClientBluetoothParams BluetoothParams . SerialParams wclClientSerialParams SerialParams Read-Only The property returns an instance of the wclClientSerialParams object which allows you to manage settings for serial connection.

Events OnConnect public class wclConnectEventArgs : public EventArgs { public Int32 Error. EventArgs e) The event fires when remote device disconnects or after call of Disconnect() method. } void OnConnect(object sender. } void OnOBEXProgress(object sender. wclConnectEventArgs e) The event fires when connect to a remote device is established. The Error parameter is WCL_E_SUCCESS if connection established with success or an error code if connection was not established. wclOBEXProgressEventArgs e) . State wclClientState State Read-Only The property returns current state of the component. OnDisconnect void OnDisconnect(object sender.Read-Only The property returns an instance of the wclClientBluetoothParams object which allows you to manage settings for Bluetooth connection. OnOBEXProgress public class wclOBEXProgressEventArgs : public EventArgs { public UInt32 Position. public UInt32 Size.

The Position parameter indicates a current position in a transferring object (in Bytes). OnOBEXPutComplete public class wclConnectEventArgs : public EventArgs { public Int32 Error. . If the Error parameter is not WCL_E_SUCCESS then the Stream parameter is invalid and can not be used. OnOBEXConnect public class wclConnectEventArgs : public EventArgs { public Int32 Error. EventArgs e) The event fires when an OBEX session is closed. The Error parameter indicates an operation’s result code. The Error parameter indicates an operation result code. } void OnOBEXGetComplete(object sender. } void OnOBEXConnect(object sender. the Size parameter is a complete object’s size (in Bytes). public Int32 Error. OnOBEXGetComplete public class wclOBEXGetCompleteEventArgs : public EventArgs { public MemoryStream Stream. The Stream parameter contains an object’s data stream as a Byte array. The Error parameter indicates an operation’s result. OnOBEXDisconnect void OnOBEXDisconnect(object sender. } void OnOBEXPutComplete(object sender. wclConnectEventArgs e) The event fires when Put operation is completed. wclOBEXGetCompleteEventArgs e) The event fires when a GET operation is completed (with or without success). wclConnectEventArgs e) The event fires when an OBEX session is established (with or without success).The event fires during Put or Get operations.

The object will be saved on a target device with ObjectName. OpenOBEXSession Int32 OpenOBEXSession() The method opens an OBEX session.wclFTPClient The class is used for managing files on a target device with using OBEX File Transfer Profile. CloseOBEXSession Int32 CloseOBEXSession() The method closes an existing OBEX session. The ObjectName parameter usually is a file name with extension and without path. It works for Put operation only and must be called only when Put is active. Disconnect void Disconnect() The method closes a connection to with a target device. Stream Stream) The method send the object represented as a Byte array (Stream parameter) to a target device. Terminate Int32 Terminate() The method terminates current sending operation. Methods Put Int32 Put(String ObjectName. Connect Int32 Connect() . It is required to open an OBEX session before any other OBEX operations.

Delete Int32 Delete(String ObjectName) The method deletes an object with ObjectName.. You may use predefined directories names. “.” – moves one level up. If a directory is created with success then it becomes a current directory. The ObjectName parameter is a name of a new directory. You should know that OBEX does not support “paths”.The method connects to the target device with using specified transport. SetPath Int32 SetPath(String ObjectName) The method changes a current directory to new one specified as the ObjectName parameter.” – moves to a root directory. Dir Int32 Dir() The method enumerates files and directories on a remote device. Get Int32 Get(String ObjectName. like: “. The MIME parameter indicates the content MIME type. You have to change current directly one by one. MakeDir Int32 MakeDir(String ObjectName) Call this method to create new directory on a target device. String MIME) The method requests the object with ObjectName from the remote device. Properties OBEXParams wclClientOBEXParams OBEXParams .

SerialParams wclClientSerialParams SerialParams Read-Only The property returns an instance of the wclClientSerialParams object which allows you to manage settings for serial connection.Read-Only The property contains the OBEXParams object. IrDAParams wclClientIrDAParams IrDAParams Read-Only The property returns an instance of the wclClientIrDAParams object which allows you to manage settings for IrDA connection. OBEXOperation wclOBEXOperation OBEXOperation Read-Only The property returns the currently executing OBEX operation. Transport wclClientTransport Transport Read-Write The property manages the transport used by the class to connect to a remote device. OBEXState wclOBEXState OBEXState Read-Only The property contains the current component’s state. .

State wclClientState State Read-Only The property returns current state of the component. BluetoothParams wclClientBluetoothParams BluetoothParams Read-Only The property returns an instance of the wclClientBluetoothParams object which allows you to manage settings for Bluetooth connection.ConnectTimeout UInt32 ConnectTimeout Read-Write The property manages connect timeout. Buffers wclBuffers Buffers Read-Only The property returns an instance of the wclBuffers object which allows you to manage buffers settings for send and receive operations. wclConnectEventArgs e) . } void OnConnect(object sender. Events OnConnect public class wclConnectEventArgs : public EventArgs { public Int32 Error.

wclOBEXProgressEventArgs e) The event fires during Put or Get operations. OnOBEXDisconnect void OnOBEXDisconnect(object sender. EventArgs e) The event fires when an OBEX session is closed. OnOBEXPutComplete public class wclConnectEventArgs : public EventArgs { public Int32 Error. The Error parameter is WCL_E_SUCCESS if connection established with success or an error code if connection was not established. public UInt32 Size. The Error parameter indicates an operation result code. The Position parameter indicates a current position in a transferring object (in Bytes). the Size parameter is a complete object’s size (in Bytes). EventArgs e) The event fires when remote device disconnects or after call of Disconnect() method. } void OnOBEXPutComplete(object sender. OnOBEXConnect public class wclConnectEventArgs : public EventArgs { . } void OnOBEXProgress(object sender. wclConnectEventArgs e) The event fires when Put operation is completed.The event fires when connect to a remote device is established. OnDisconnect void OnDisconnect(object sender. OnOBEXProgress public class wclOBEXProgressEventArgs : public EventArgs { public UIint32 Position.

wclOBEXDirCompleteEventArgs e) The event fires when the Dir operation is completed. public Int32 Error. } void OnOBEXDirComplete(object sender. The Error parameter indicates an operation’s result code. The Stream parameter contains an object’s data stream as a Byte array. wclConnectEventArgs e) The event fires when an OBEX session is established (with or without success). wclOBEXGetCompleteEventArgs e) The event fires when the GET operation is completed (with or without success). wclConnectEventArgs e) The event fires when the Delete operation is completed. } void OnOBEXConnect(object sender. . If the Error parameter is not WCL_E_SUCCESS then the Stream parameter is invalid and can not be used. OnOBEXDeleteComplete public class wclConnectEventArgs : public EventArgs { public Int32 Error. The Error parameter indicates an operation’s result code.public Int32 Error. The Error parameter indicates an operation’s result. The Error parameter indicates a result code of the operation. } void OnOBEXGetComplete(object sender. public Int32 Error. OnOBEXDirComplete public class wclOBEXDirCompleteEventArgs : public EventArgs { public wclFileSystemObjects Objects. If the Error parameter is not WCL_E_SUCCESS then the Objects parameter is not valid and can not be used. The Objects parameter is a file system’s objects list. } void OnOBEXDeleteComplete(object sender. OnOBEXGetComplete public class wclOBEXGetCompleteEventArgs : public EventArgs { public MemoryStream Stream.

wclConnectEventArgs e) The event fires when the MakeDir operation is completed. The Error parameter contains an operation’s result code.OnOBEXMakeDirComplete public class wclConnectEventArgs : public EventArgs { public Int32 Error. Microsoft and partially Toshiba Bluetooth stacks. The Error parameter contains a result of the operation. wclAuthenticator supports BlueSoileil. Methods Open Int32 Open() The method starts PIN requests handling for specified radio. wclConnectEventArgs e) The event fires when the SetPath operation is completed. Close void Close() The method stops PIN requests handling for specified radio. . } void OnOBEXMakeDirComplete(object sender. Each instance must run for different radios. OnOBEXSetPathComplete public class wclConnectEventArgs : public EventArgs { public Int32 Error. } void OnOBEXSetPathComplete(object sender. wclAuthenticator This object is used for handling authentication (PIN) requests. You can use more than 1 instance of this object in your applications.

It implements all the things required for such applications as: • • • • • discovering devices. The Device parameter is a wclBluetoothDevice instance represents remote device which asks for PIN. Application must provide PIN as the PIN parameter. } void OnPINRequest(object sender. wclPINRequestEventArgs e ) The event fires when a remote (or local) device requires authentication (PIN).Properties Active Boolean Active Read-Only The property returns true if wclAuthenticator is active and handling PIN requests. managing “processed devices”. managing files for send parallel (concurrent) connections to several devices at the same time. public String PIN. Events OnPINRequest public class wclPINRequestEventArgs : public EventArgs { public wclBluetoothDevice Device. wclProximitySender The wclProximitySender object is used for developing Bluetooth Proximity Marketing applications. . This PIN will be send to device for authentication. Radio wclBluetoothRadio Radio Read-Write The property manages Radio object on which handling should run. controlling operation process.

The value must be in seconds. SleepInterval Byte SleepInterval Read-Write The property controls interval between each sending loop (sending loop includes discovering for devices and sending files to it). Methods Start Int32 Start() The method starts sending process Stop void Stop() The method stops sending process Properties Timeout Byte Timeout Read-Write The property controls a connect timeout (in seconds). .• controlling result for each send operation. SendDelay Byte SendDelay Read-Write The property controls a delay (in seconds) between discovering for the devices is finished and sending to the devices will be started.

DiscoveryRadio wclBluetoothRadio DiscoveryRadio Read-Write The property manages the local radio which should be used for discovering. Or you may use different radios. SendRadio wclBluetoothRadio SendRadio Read-Write The property manages the local radio which should be used for sending files. Active . It is possible to use the same radio for sending and discovering. MaxConnections Byte MaxConnections Read-Write The property controls a maximum number of concurrent connections. DiscoveryTimeout Byte DiscoveryTimeout Read-Write The property controls a maximum time (in seconds) for discovering remote devices. Most dongles can not work with more than 7 concurrent connections.Secure Boolean Secure Read-Write If this property is true then authenticated connection will be used (with PIN). It is recommended to use wclAuthenticator to handle PIN requests in this case. It is possible to use the same radio for sending and discovering. Or you may use different radios.

OnStartSleep void OnStartSleep(object sender. EventArgs e) The event fires when sleep is started. OnStopped void OnStopped(object sender. . EventArgs e) The event fires when sending is started. OnStarted void OnStarted(object sender. OnStartDeay void OnStartDelay(object sender. Events OnStopSleep void OnStopSeep(object sender. EventArgs e) The event fires when delay interval is expired. OnStopDelay void OnStopDelay(object sender. EventArgs e) The event fires when sending is stopped. EventArgs e) The event fires when sleep interval is expired. EventArgs e) The event fires when delay is started.Boolean Active Read-Only The property returns true if wclProximitySender is active and discovering/sending.

public String FileName. wclSendProgressEventArg e) The event fires during sending a file to a device. the FileName parameter is a name of a sending file. The Device parameter represents a processing device. public Int32 Error. public String FileName. public UInt32 Size.OnSendStart public class wclFileSendStartedEventArgs : public EventArgs { public wclBluetoothDevice Device. The Device parameter represents a target device. OnProgress public class wclSendProgressEventArgs : public EventArgs { public wclBluetoothDevice Device. } void OnSendStarted(object sender. } void OnSendComplete(object sender. OnSendComplete public class wclFileSendCompleteEventArgs : public EventArgs { public wclBluetoothDevice Device. } void OnProgress(object sender. the Position parameter is a current position of file (in Bytes) and the Size parameter is a file’s size (in Bytes). wclFileSendStartedEventArgs e ) The event fires when sending to a device is started. public UInt32 Position. OnGetFiles public class wclGetFilesEventArgs : public EventArgs { public wclBluetoothDevice Device. . The Device parameter represents a processed device and the Error parameter contains the result code. public String FileName. wclFileSendCompleteEventArgs e) The event fires when sending to a device is complete.

public String FileName. wclFileSendCompleteEventArgs e ) The event fires when a specified file has been sent to a device. The Device parameter represents a target device. OnDiscoveryStarted void OnDiscoveryStarted(object sender. } void OnGetFiles(object sender. OnFileSendComplete public class wclFileSendCompleteEventArgs : public EventArgs { public wclBluetoothDevice Device. wclGetFilesEventArgs e ) The event fires when the Proximity Sender requires a files list for a device. public String FileName. EventArgs e) The event fires when the Proximity Sender starts discovering for remote devices. the FileName parameter is the name of a sent file and the Error parameter is a result code. The Device parameter represents a target device and the FileName is the name of a sending file.public List< String> Files. wclFileSendStartedEventArgs e) The event fires when the Proximity Sender started sending file to a device. OnDiscoveryComplete void OnDiscoveryComplete(object sender. OnFileSendStarted public class wclFileSendStartedEventArgs : public EventArgs { public wclBluetoothDevice Device. . } void OnFileSendComplete(object sender. } void OnFileSendStarted(object sender. EventArgs e) The event fires when the Proximity Sender discovered remote devices. The Device parameter represents a target device and the Files parameter is an empty files list. An application must fill the list with full path to the files which the Proximity Sender must send to device. public Int32 Error.

wclAcceptDeviceEventArgs e) The event fires when the Proximity Sender is building a devices list. OnAcceptDevice public class wclAcceptDeviceEventArgs : public EventArgs { public wclBluetoothDevice^ Device. } void OnAcceptDevice(object sender. or Accept = false when the Proximity Sender must skip device. An application must set Accept = true if sending to device is required. wclDevicesFoundEventArgs e) The event fires to notify an application about discovered devices. stBluetooth stIrDA Bluetooth server connection IrDA server connection wclServerState The enumeration represents a server connection state. public Boolean Accept.OnDevicesFound public class wclDevicesFoundEventArgs : public EventArgs { public wclBluetoothDevices Devices. ssClosed ssOpening ssListen ssConnected ssDisconnecting ssClosing Server is closed Server is opening Server is listening (waiting for client connection) Client is connected to server Client is disconnecting from server Server is closing . } void OnDevicesFound(object sender. wclServerTransport The enumeration represents a transport used by a server connection.

If Authentication is true then connection will require pairing.wclServerBluetoothParams This class manages parameters for a Bluetooth server connection. Application must never create this class directly. Application must provide correct Radio. It is recommended to use 0. Encryption Boolean Encryption Read-Write The property manages connection data encryption. Service Guid Service . If it is 0 then component will use autogenerated channel number. Channel Byte Channel Read-Write The property manages the RFCOMM channel number. Radio wclBluetoothRadio Radio Read-Write The property contains Radio object used for waiting a connection from a target device. Properties Authentication Boolean Authentication Read-Write This property sets authentication mode for the connection.

Methods . Service String Service Read-Write The property contains an IrDA service’s name. Can be empty. Name String Name Read-Write The service’s name. A client will connect to this service. wclServer The class implements a simple server. Application must never create this class directly. wclServerIrDAParams The class contains parameters for a IrDA server connection.Read-Write The service’s UUID. Properties NineWire Boolean NineWire Read-Write The property manages NineWire mode for IrDA connection.

.Close void Close() The method closes the server. DeviceName String DeviceName Read-Only When remote device (client) is connected to the server the property contains a remote device’s name. UInt32 Size) The method writes data (array of Byte) stored in Buffer parameter to a connection. Listen Int32 Listen() The method opens server for incoming connection. Properties Address String Address Read-Only When remote device (client) is connected to the server the property contains a remote device’s address. State wclServerState State Read-Only The property contains the server’s state. Write Int32 Write(Byte[] Buffer.

Transport wclServerTransport Transport Read-Write The property manages server’s transport. Events OnClosed void OnClosed(object sender. EvetArgs e) The event fires when server is closed.BluetoothParams wclServerBluetoothParams BluetoothParams Read-Only The property returns an instance of wclServerBluetoothParams object which allows managing settings for Bluetooth server. . IrDAParams wclServerIrDAParams IrDAParams Read-Only The property returns an instance of wclServerIrDAParams object which allows to manage settings for IrDA server. Buffers wclBuffers Buffers Read-Only The property manages a read and a write buffers used for a data communication.

wclDataEventArgs e) The event fires when data received from remote device. public UInt32 Size. EventArgs e) The event fires when a remote device (client) is connected to the server. OnData public class wclDataEventArgs : public EventArgs { public Byte[] Data. EventArgs e) The event fires when a remote device (client) is disconnected from the server. wclOPPServer The class allows you to create a server which will receive files from client (phone or any other device) over Bluetooth or IrDA. wclConnectEventArgs e) The event fires when server is ready for listen (wait) for incoming connection. } void OnData(object sender. Methods . The Buffer parameter is a one dimension array of Byte. } void OnListen(object sender. OnListen public class wclConnectEventArgs : public EventArgs { public Int32 Error. OnDisconnected void OnDisconnected(object sender. The Error parameter contains a result code.OnConnected void OnConnected(object sender.

DeviceName String DeviceName Read-Only When remote device (client) is connected to the server the property contains a remote device’s name.Close void Close() The method closes the server. State wclServerState State Read-Only The property contains the server’s state. Terminate Int32 Terminate() The method terminates current transferring operation. Properties Address String Address Read-Only When remote device (client) is connected to the server the property contains a remote device’s address. . Listen Int32 Listen() The method opens server for incoming connection.

Buffers wclBuffers Buffers Read-Only The property manages a read and a write buffers used for a data communication.BluetoothParams wclServerBluetoothParams BluetoothParams Read-Only The property returns an instance of wclServerBluetoothParams object which allows to manage settings for Bluetooth server. Transport wclServerTransport Transport Read-Write The property manages server’s transport. Events . IrDAParams wclServerIrDAParams IrDAParams Read-Only The property returns an instance of wclServerIrDAParams object which allows to manage settings for IrDA server. ObjectName String ObjectName Read-Only The property contains a name of currently transferring (receiving) object (file).

EventArgs e) The event fires when server is closed. The Error parameter contains a result code. OnDisconnected void OnDisconnected(object sender. EventArgs e) The event fires when a remote device (client) is disconnected from the server. OnListen public class wclConnectEventArgs : public EventArgs { public Int32 Error. OnConnected void OnConnected(object sender. OnOBEXProgress public class wclOBEXProgressEventArgs : public EventArgs { public UInt32 Position. the Size parameter is a complete object’s size (in Bytes). wclConnectEventArgs e) The event fires when server is ready for listen (wait) for incoming connection. The Position parameter indicates a current position in a transferring object (in Bytes). EventArgs e) The event fires when a remote device (client) is connected to the server.OnClosed void OnClosed(object sender. OnOBEXObjectReceived public class wclOBEXObjectReceivedEventArgs : public EventArgs . } void OnOBEXProgress(object sender. } void OnListen(object sender. wclOBEXProgressEventArgs e) The event fires during receiving an object. public UInt32 Size.

public String ObjectName. } void OnOBEXObjectReceived(object sender. The ObjectName is an object’s name.{ public MemoryStream Stream. Miscellaneous codMisc Computers codComputer codDesktop codServer codLaptop codHandheld codPalm codWearable Phones codPhone codCellurar codCordLess codSmart codWiredModem codISDN Audio codAudio codHeadSet codHandsFree codHeadSetHandsFree codMicrophone codLoudspeaker codHeadphones . The Stream parameter contains an object’s data (as Bytes array). wclClassOfDevice The enumeration represents a COD (Class Of Device) into readable format. wclOBEXObjectReceivedEventArgs e) The event fires when an object received.

codPortableAudio codCarAudio codSetTopBox codHiFiAudio codVCR codVideoCamera codCamcoder codVideoMonitor codDisplayLoudspeaker codDisplayConferencing codGamingToy Peripheral codPeripheral codJoystick codGamepad codRemoteControl codSensing codDigitizerTablet codCardReader codKeyboard codPointer Imaging codDisplay codCamera codScanner codPrinter codImaging Wearable codWristWatch codPager codJacket codHelmet codGlasses codWearableOther Toy codRobot codVehicle codDollActionFigure codController .

codGame codToy LAN codLAN Others codUnknown .