mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
11268d8bfb
- feat(soc_caps): Enable BT Classic and BLE in esp32s31 - Add git submodule for ESP32-S31 bt controller lib files - changed sdkconfig.defaults and README for Bluetooth Classic examples - change(docs): Added vendor HCI documentations for ESP32-S31 - change(Bluedroid): Adapt to ESP32-S31 due to some API differences on Bluetooth controller from ESP32 - change(bt): Modify CMakeLists.txt to support the Bluetooth dual-mode architecture on ESP32-S31 - change(bt): Add ECC P-192 functions to tinycrypt
| Supported Targets | ESP32 | ESP32-S31 |
|---|
AVRCP-CT-METADATA EXAMPLE
This is the example of API implementing Audio/Video Remote Control Profile to get metadata.
Required components
- bt_app_core_utils
- bredr_app_common_utils
- a2dp_sink_common_utils
- a2dp_sink_int_codec_utils
- a2dp_sink_ext_codec_utils
- avrcp_common_utils
- avrcp_metadata_utils
+---------------------------------------------------+---------------------+
| avrcp_metadata_utils | |
+---------------------------------------------------+ |
| avrcp_common_utils | |
+-------------------------+-------------------------+ |
|a2dp_sink_int_codec_utils|a2dp_sink_ext_codec_utils| bt_app_core_utils |
+-------------------------+-------------------------+ |
| a2dp_sink_common_utils | |
+---------------------------------------------------+ |
| bredr_app_common_utils | |
+---------------------------------------------------+---------------------+
Detailed information can be viewed through the ../common/README.md.
How to use this example
Configure the project
idf.py menuconfig
Build and Flash
Build the project and flash it to the board, then run monitor tool to view serial output.
idf.py -p PORT flash monitor
(To exit the serial monitor, type Ctrl-].)
Example Output
The output when receiving metadata:
I (81700) RC_CT: AVRC event notification: 2
I (81740) RC_CT: AVRC metadata rsp: attribute id 0x1,
I (81740) RC_CT: AVRC metadata rsp: attribute id 0x2,
I (81740) RC_CT: AVRC metadata rsp: attribute id 0x4,
I (81750) RC_CT: AVRC metadata rsp: attribute id 0x20,
Troubleshooting
For any technical queries, please open an issue on GitHub. We will get back to you soon.