Important: Before you run this example, make sure to program the SoftDevice.
The Object Transfer Service (OTS) server application is a peripheral role example that implements an Object Transfer Service server. For more information about the Object Transfer service implementation, see Experimental: Object Transfer Service Server.
When the application device connects to a peer, they establish L2CAP channel reserved for OTS. The OTS client will request to write an object. The request is done by writing to the Object Action Control Point (0x2AC5) over GATT. If the write is accepted by the server, the data will be transfered over the L2CAP channel established earlier. An event is triggered on the server-side application when the write is complete.
You can find the source code and the project file of the example in the following folder: <InstallFolder>\examples\ble_peripheral\experimental\ble_app_ots
Button assignments: BSP BLE Button Assignments
Two boards are needed to perform this test:
Start a terminal emulator like PuTTY and connect to the used COM port with the following UART settings: