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

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

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

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

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

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

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

wclBluetoothAPI wclBluetoothAPI enumeration represents supported Bluetooth APIs. Application must call this method after finished using the library. baBlueSoleil baMicrosoft baToshiba baWidComm BlueSoleil Bluetooth drivers Microsoft Bluetooth drivers Toshiba Bluetooth drivers WidComm Bluetooth drivers wclTransport wclTransport enumeration represents supported transports. Application uses WCL must have at least one instance of the wclAPI class. Application must call this method before using any other methods or classes of the library. Unload Int32 Unload() This method unloads low-level transports and APIs. wclAPI manages low-level transports and drivers. Otherwise it returns one of the error codes (see wclErrors for more details). If the method completes with success it returns WCL_E_SUCCESS. . 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. Methods Load Int32 Load() This method loads low-level transports and APIs.

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

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

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

. Properties Count UInt32 Count Read-Only The property returns the number of radios in the list. Delete void Delete(UInt32 Index) The method deletes the radio with given Index from 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.Methods Add void Add(wclBluetoothRadio Radio) The method adds Radio object to the list. Clear void Clear() The method clears 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. Handle UInt32 Handle Read-Only The property contains service’s service record handle. Usually it is empty.wclBluetoothService The class represents Bluetooth service. Methods Assign void Assign(wclBluetoothService Service) The method copies one instance of the wclBluetoothService into current one. Not all services have RFCOMM channel number. Name String Name .

Clear void Clear() The method clears the list. UUID Guid UUID Read-Only The property contains the service’s UUID.Read-Only The property contains the service’s name. 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. Delete void Delete(UInt32 Index) The method deletes a service object with given Index from the list. wclBluetoothServices The class represents a list of Bluetooth services. .

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

The method can be used for checking availability of the remote device by querying its services. 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. wclBluetoothServices Services. Guid UUID) The method enumerates services on the remote device with using specified Radio. If the UUID parameter is null the method enumerates all services. DecodeCOD wclClassOfDevice DecodeCOD(UInt32 COD) The method decodes COD to readable format. String PIN) The method pairs local Bluetooth Radio with the remote device using specified PIN. Properties Address String Address Read-Write .EnumServices Int32 EnumServices(wclBluetoothRadio Radio. The method fills it with services list. Pair Int32 Pair(wclBluetoothRadio Radio. If the UUID parameter is a service’s UUID the method enumerates (checks) only specified service. Unpair Int32 Unpair(wclBluetoothRadio Radio) The method unpairs the local Bluetooth Radio and the remote device.

Delete void Delete(UInt32 Index) The method deletes a wclBluetoothDevice object from the list by its Index. Methods Add void Add(wclBluetoothDevice Device) The method adds a wclBluetoothDevice object to the list.The property contains an address of the remote device. . Clear void Clear() The method clears the list. wclBluetoothDevices The class represents a list of remote Bluetooth devices. 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.

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

Events OnDiscoveryComplete public class wclBluetoothDiscoveryCompleteEventArgs : public EventArgs { public wclBluetoothRadio Radio. wclBluetoothDiscoveryCompleteEventArgs e) The event fires when discovering for remote devices is completed. } void OnDiscoveryStarted(object sender. } void OnDiscoveryComplete(object sender. The Radio parameter represents a dongle on which the discovering is executing. If the discovering wad done with error the Devices parameter is null. 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. public wclBluetoothDevices Devices. If the discovering was complete with success the Devices parameter is a valid wclBluetoothDevices object contains a list of founded devices. 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 . OnDiscoveryStarted public class wclBluetoothDiscoveryStartedEventArgs : public EventArgs { public wclBluetoothRadio Radio.

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 .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.

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 .

wclIrDADevices The class represents a list of IrDA devices. Address String Address Read-Only The property contains the address of an IrDA device. 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 . Methods Add void Add(wclIrDADevice Device) The method adds Device to the list.WCL_E_MONITORING_ACTIVE wclIrDADevice The class represents an IrDA device.

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)

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

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

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

Service .Boolean Authentication Read-Write This property sets authentication mode for the connection. 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. Encryption Boolean Encryption Read-Write The property manages connection data encryption. Channel Byte Channel Read-Write The property manages the RFCOMM channel number. 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. Application must provide correct Radio. If a target device has more than 1 service with the same UUID you must provide correct channel number to avoid conflict.

Service String Service Read-Write The property contains a IrDA service’s name. br110 br300 br600 110 baud 300 baud 600 baud . wclBaudRate This enumeration represents a serial port baud rate.Guid Service Read-Write The service’s UUID in String representation. A client will connect to specified service. wclClientIrDAParams The class contains parameters for a IrDA client connection. Address String Address Read-Write The property contains an address of a remote IrDA device to connect to. Properties NineWire Boolean NineWire Read-Write The property manages NineWire mode for IrDA connection. 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.5 stop bit 2 stop bits .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. sb1 sb15 sb2 wclClientSerialParams 1 stop bit 1.BaudRateValue property) wclByteSize The enumeration represents a serial port Byte’s size.

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

wclClientState The enumeration represents a client connection state. . Methods Write Int32 Write(Byte[] Buffer. UInt32 Size) The method writes data (array of Byte) stored in Buffer parameter to a connection. 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. StopBits wclStopBits StopBits Read-Write The property manages a serial port stop bits. If the method completes with success it returns WCL_E_SUCCESS.The property manages a serial port number used for connection. ctBluetooth ctIrDA ctSerial Bluetooth client connection IrDA client connection Serial client connection wclClient The class implements a simple client connection.

Disconnect void Disconnect() The method disconnects from a remote device.Connect Int32 Connect() The method connects to a remote device with using specified transport. 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. ConnectTimeout UInt32 ConnectTimeout Read-Write .

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

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

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

opExecute Object can be executed Not all devices support permissions and not all permissions are possible for devices. 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. AddPermission void AddPermission(wclFileSystemObjectPermission Permission) The method adds the specified Permission to the object’s permissions list. 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. Please note that it does not change any actual object’s permissions. that not all devices support this property. . that it does not change any actual object’s permissions. Please note. Note. Properties CreateDateTime DateTime CreateDateTime Read-Write The property contains an object’s creation date and time.

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. ObjectType wclFileSystemObjectType ObjectType Read-Write The property indicates an object type. wclFileSystemObjects The class represents a file system objects list. Methods Add void Add(wclFileSystemObject FileSystemObject) The method adds FileSystemObject into the list. .

Properties Count UInt32 Count Read-Only The property returns objects count in the list. 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.Clear void Clear() The method clears the list. Delete void Delete(UInt32 Index) The method deletes a object from the list by its index. 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. ooNone No operation is executing .

OpenOBEXSession Int32 OpenOBEXSession() The method opens an OBEX session. The object will be saved on a target device with ObjectName. The ObjectName parameter usually is a file name with extension and without path. . Stream Stream) The method send the object represented as a Byte array (Stream parameter) to a target device. It works for Put operation only and must be called only when Put is active.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. Methods Put Int32 Put(String ObjectName. It is required to open an OBEX session before any other OBEX operations. Terminate Int32 Terminate() The method terminates current sending operation. CloseOBEXSession Int32 CloseOBEXSession() The method closes an existing OBEX session.

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

ConnectTimeout UInt32 ConnectTimeout Read-Write The property manages connect timeout. IrDAParams wclClientIrDAParams IrDAParams Read-Only The property returns an instance of the wclClientIrDAParams object which allows you to manage settings for IrDA connection. 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. BluetoothParams wclClientBluetoothParams BluetoothParams .Transport wclClientTransport Transport Read-Write The property manages the transport used by the class to connect to a remote device. SerialParams wclClientSerialParams SerialParams Read-Only The property returns an instance of the wclClientSerialParams object which allows you to manage settings for serial connection.

} void OnOBEXProgress(object sender. public UInt32 Size. wclConnectEventArgs e) The event fires when connect to a remote device is established. EventArgs e) The event fires when remote device disconnects or after call of Disconnect() method. OnDisconnect void OnDisconnect(object sender. OnOBEXProgress public class wclOBEXProgressEventArgs : public EventArgs { public UInt32 Position. wclOBEXProgressEventArgs e) . } void OnConnect(object sender. Events OnConnect 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. State wclClientState State Read-Only The property returns current state of the component.Read-Only The property returns an instance of the wclClientBluetoothParams object which allows you to manage settings for Bluetooth connection.

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

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

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

SerialParams wclClientSerialParams SerialParams Read-Only The property returns an instance of the wclClientSerialParams object which allows you to manage settings for serial connection. 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.Read-Only The property contains the OBEXParams object. Transport wclClientTransport Transport Read-Write The property manages the transport used by the class to connect to a remote device. OBEXOperation wclOBEXOperation OBEXOperation Read-Only The property returns the currently executing OBEX operation.

wclConnectEventArgs e) . 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. } void OnConnect(object sender. 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. Events OnConnect public class wclConnectEventArgs : public EventArgs { public Int32 Error. State wclClientState State Read-Only The property returns current state of the component.

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

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

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

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

.• controlling result for each send operation. 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). 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. 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).

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

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

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

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

or Accept = false when the Proximity Sender must skip device.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 . wclAcceptDeviceEventArgs e) The event fires when the Proximity Sender is building a devices list. } void OnDevicesFound(object sender. stBluetooth stIrDA Bluetooth server connection IrDA server connection wclServerState The enumeration represents a server connection state. wclDevicesFoundEventArgs e) The event fires to notify an application about discovered devices. OnAcceptDevice public class wclAcceptDeviceEventArgs : public EventArgs { public wclBluetoothDevice^ Device. public Boolean Accept. An application must set Accept = true if sending to device is required. } void OnAcceptDevice(object sender. wclServerTransport The enumeration represents a transport used by a server connection.

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

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

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

Events OnClosed void OnClosed(object sender. EvetArgs e) The event fires when server is closed. . Transport wclServerTransport Transport Read-Write The property manages server’s transport. 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 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.

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

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. State wclServerState State Read-Only The property contains the server’s state. DeviceName String DeviceName Read-Only When remote device (client) is connected to the server the property contains a remote device’s name. Terminate Int32 Terminate() The method terminates current transferring operation.Close void Close() The method closes the server.

BluetoothParams wclServerBluetoothParams BluetoothParams Read-Only The property returns an instance of wclServerBluetoothParams object which allows to manage 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. Transport wclServerTransport Transport Read-Write The property manages server’s transport. ObjectName String ObjectName Read-Only The property contains a name of currently transferring (receiving) object (file). Buffers wclBuffers Buffers Read-Only The property manages a read and a write buffers used for a data communication. Events .

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

{ public MemoryStream Stream. The ObjectName is an object’s name. } void OnOBEXObjectReceived(object sender. 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). wclOBEXObjectReceivedEventArgs e) The event fires when an object received. wclClassOfDevice The enumeration represents a COD (Class Of Device) into readable format. public String ObjectName.

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 .