We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82fd266 commit 27525a3Copy full SHA for 27525a3
pico_w/bt/picow_bt_example_common.c
@@ -12,6 +12,8 @@
12
#include "pico/cyw43_arch.h"
13
#include "pico/stdlib.h"
14
#include "btstack.h"
15
+#include "hci_dump.h"
16
+#include "hci_dump_embedded_stdout.h"
17
18
#if defined(WIFI_SSID) && defined(WIFI_PASSWORD)
19
#define TEST_BTWIFI 1
@@ -87,6 +89,12 @@ int picow_bt_example_init(void) {
87
89
void picow_bt_example_main(void) {
88
90
91
btstack_main(0, NULL);
92
+
93
+ // if WANT_HCI_DUMP=1, enable debug output as well as packet logger
94
+#if WANT_HCI_DUMP
95
+ hci_dump_init(hci_dump_embedded_stdout_get_instance());
96
+ hci_dump_enable_packet_log(true);
97
+#endif
98
99
#if TEST_BTWIFI
100
uint32_t start_ms = to_ms_since_boot(get_absolute_time());
0 commit comments