File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -778,6 +778,10 @@ static hci_transport_config_uart_t config = {
778
778
static btstack_packet_callback_registration_t hci_event_callback_registration;
779
779
780
780
void BTstackManager::setup (void ) {
781
+ setup (" BTstack LE Shield" );
782
+ }
783
+
784
+ void BTstackManager::setup (const char * name) {
781
785
782
786
// #ifdef PIN_LED
783
787
// pinMode(PIN_LED, OUTPUT);
@@ -826,7 +830,6 @@ void BTstackManager::setup(void) {
826
830
const uint8_t flags[] = { 0x02 , 0x01 , 0x02 };
827
831
memcpy (&adv_data[pos], flags, sizeof (flags));
828
832
pos += sizeof (flags);
829
- const char * name = " BTstack LE Shield" ;
830
833
adv_data[pos++] = strlen (name) + 1 ;
831
834
adv_data[pos++] = 0x09 ;
832
835
memcpy (&adv_data[pos], name, strlen (name));
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ extern "C" {
135
135
public:
136
136
BTstackManager (void );
137
137
void setup (void );
138
+ void setup (const char * name);
138
139
void loop (void );
139
140
140
141
void setPublicBdAddr (bd_addr_t addr);
You can’t perform that action at this time.
0 commit comments