Skip to main content

Send a file in the client role

Before you begin, set up the device as described in Set up the device for Bluetooth OPP functions. To send a file in the client role, do the following:
  1. Connect to the remote device by running the following command from the obexctl menu:
    Parameters
    • <bt_address> is the Bluetooth address of the remote device.
    • <profile_name> is opp.
    Example To connect to a remote device with <bt_address> 22:22:5A:A5:56:6B, run the following command:
    Sample output
  2. Create a text file at a local directory of the DUT.
  3. Send this text file to the remote device by running the following command from the obexctl menu:
    Parameters <filepath> is the filepath of the text file. Example To send a text file temp.txt at /local/mnt/workspace/, run the following command:
    Sample output
  4. On the remote device, accept the prompt to receive the file. The file is successfully sent to the remote device.