Skip to content

Commit

Permalink
esp32 example: shows how to enable hci dump
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoquesada committed Sep 18, 2024
1 parent f4c4d9f commit fbde940
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/esp32/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include <btstack_port_esp32.h>
#include <btstack_run_loop.h>
#include <btstack_stdio_esp32.h>
#include <hci_dump.h>
#include <hci_dump_embedded_stdout.h>
#include <uni.h>

#include "sdkconfig.h"
Expand All @@ -19,7 +21,8 @@
struct uni_platform* get_my_platform(void);

int app_main(void) {
// hci_dump_open(NULL, HCI_DUMP_STDOUT);
// If you enable HCI Dump better to disable "Bluepad32 USB Console" from "idf.py menuconfig".
// hci_dump_init(hci_dump_embedded_stdout_get_instance());

// Don't use BTstack buffered UART. It conflicts with the console.
#ifdef CONFIG_ESP_CONSOLE_UART
Expand Down

0 comments on commit fbde940

Please sign in to comment.