> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Perform Bluetooth OPP server functions

> You can verify Bluetooth OPP server functionality using the commands provided in the main menu of ``obexctl``. Bluetooth OPP server functions allow you to receive a file in the server role.

<a id="bluez-perform-bluetooth-opp-server-functions" />

## Receive a file in the server role

To receive a file in the server role, do the following:

1. Pair the DUT and the remote device. For instructions, see <a href="perform-bluetooth-gap-functions#pair-with-a-remote-bluetooth-device" target="_self">Pair with a remote Bluetooth device</a>.

2. Initiate a connection from the remote device to the DUT.

3. Send any file from the remote device to the DUT through Bluetooth sharing.

   The transfer prints appear in the `obexctl` screen of the DUT. After the file transfer to the DUT, the file is stored at `/var/bluetooth`.

   **Sample output**

   ```text theme={null}
   [NEW] Session /org/bluez/obex/server/session6
   [NEW] Transfer /org/bluez/obex/server/session6/transfer5
   [CHG] Transfer /org/bluez/obex/server/session6/transfer5 Size: 36
   [CHG] Transfer /org/bluez/obex/server/session6/transfer5 Status: active
   [CHG] Transfer /org/bluez/obex/server/session6/transfer5 Transferred: 36 (@0KB/s 00:00)
   [CHG] Transfer /org/bluez/obex/server/session6/transfer5 Status: complete
   [DEL] Transfer /org/bluez/obex/server/session6/transfer5
   [DEL] Session /org/bluez/obex/server/session6
   [22:22:75:C2:D2:72]#
   ```
