This example demonstrates how to set up an OPP client that scans for and discovers remote peers providing the OPP service.
The bt-opp-client
component relies on the fuchsia.bluetooth.bredr.Profile
protocol, which is provided by the core Bluetooth service, #bluetooth-core
.
Add the following to your Fuchsia set configuration to include the example.
--with //src/connectivity/bluetooth/examples/bt-opp-client
Include the bt-opp-client core shard in your target product configuration.
The example bt-opp-client
is declared as an “eager” component -- it will start on device boot.