OBEX Samples

ObexFTP

This sample application illustrates how to establish FTP services using the Windows CE–based Bluetooth stack over OBEX.

Usage

obexftp

When the application starts, you can use the command connect to connect to a Bluetooth device in the vicinity. A list of Bluetooth devices will be displayed during the connection process and you can choose the one that you want to perform FTP operations on. After the connection is established, you can perform typical FTP operations such as put, get, cd, and dir. You can terminate the session using the disconnect command.

Sample code for ObexFTP is provided in %_WINCEROOT%\Public\Servers\SDK\Samples\OBEX\ObexFTP.

ObexTool

This sample application provides a UI to manage or establish FTP services using the Windows CE–based Bluetooth stack over OBEX.

Usage

obextool

When the application starts, you can use the connect menu option to connect to a Bluetooth device in the vicinity. A list of Bluetooth devices will be displayed in a dialog box during the connection process and you can choose the one that you want to perform FTP operations on. After the connection is established, you can use the send file option to send a file to the connected Bluetooth device. You can terminate the session using the disconnect menu option.

Sample code for ObexTool is provided in %_WINCEROOT%\Public\Servers\SDK\Samples\OBEX\FileBrowser. To view the OBEX sample, install Platform Builder and then build a sample platform that includes OBEX. You can then find the OBEX sample in %_WINCEROOT%\Public\<your platform>\SDK\Samples\OBEX\FileBrowser.

The two most common tasks in OBEX are to GET and PUT a data object. The client is the initiator of these commands and the server, upon receiving these commands, will carry out the service requested.

Task Description
PUT Enables clients to transfer files to a server.
GET Enables clients to obtain Outlook Contact information from the server.

See Also

Object Exchange Protocol

 Last updated on Friday, April 09, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.