Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BTstack prepare for packet logs #425

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pico_w/bt/picow_bt_example_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
#include "pico/cyw43_arch.h"
#include "pico/stdlib.h"
#include "btstack.h"
#include "hci_dump.h"
#include "hci_dump_embedded_stdout.h"

#if defined(WIFI_SSID) && defined(WIFI_PASSWORD)
#define TEST_BTWIFI 1
Expand Down Expand Up @@ -87,6 +89,12 @@ int picow_bt_example_init(void) {
void picow_bt_example_main(void) {

btstack_main(0, NULL);

// if WANT_HCI_DUMP=1, enable debug output as well as packet logger
#if WANT_HCI_DUMP
hci_dump_init(hci_dump_embedded_stdout_get_instance());
hci_dump_enable_packet_log(true);
#endif

#if TEST_BTWIFI
uint32_t start_ms = to_ms_since_boot(get_absolute_time());
Expand Down
Loading