main.cpp (00f9da3aee3854b6222bfd77c3bda024236f339b) | main.cpp (15d217585718297f89c661a103c7d1222a0ab1b0) |
---|---|
1/* 2 * Copyright (C) 2019 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 172 unchanged lines hidden (view full) --- 181 switch (btstack_event_state_get_state(packet)){ 182 case HCI_STATE_WORKING: 183 gap_local_bd_addr(local_addr); 184 if (using_static_address) { 185 memcpy(local_addr, static_address, 6); 186 } 187 printf("BTstack up and running on %s.\n", bd_addr_to_str(local_addr)); 188 strcpy(tlv_db_path, TLV_DB_PATH_PREFIX); | 1/* 2 * Copyright (C) 2019 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 172 unchanged lines hidden (view full) --- 181 switch (btstack_event_state_get_state(packet)){ 182 case HCI_STATE_WORKING: 183 gap_local_bd_addr(local_addr); 184 if (using_static_address) { 185 memcpy(local_addr, static_address, 6); 186 } 187 printf("BTstack up and running on %s.\n", bd_addr_to_str(local_addr)); 188 strcpy(tlv_db_path, TLV_DB_PATH_PREFIX); |
189#ifndef Q_OS_WIN 190 // bd_addr_to_str use ":" which is not allowed in windows file names 191 strcat(tlv_db_path, bd_addr_to_str(local_addr)); 192#endif | 189 strcat(tlv_db_path, bd_addr_to_str_with_delimiter(local_addr, '-')); |
193 strcat(tlv_db_path, TLV_DB_PATH_POSTFIX); 194 tlv_impl = btstack_tlv_posix_init_instance(&tlv_context, tlv_db_path); 195 btstack_tlv_set_instance(tlv_impl, &tlv_context); 196#ifdef ENABLE_CLASSIC 197 hci_set_link_key_db(btstack_link_key_db_tlv_get_instance(tlv_impl, &tlv_context)); 198#endif 199#ifdef ENABLE_BLE 200 le_device_db_tlv_configure(tlv_impl, &tlv_context); --- 103 unchanged lines hidden --- | 190 strcat(tlv_db_path, TLV_DB_PATH_POSTFIX); 191 tlv_impl = btstack_tlv_posix_init_instance(&tlv_context, tlv_db_path); 192 btstack_tlv_set_instance(tlv_impl, &tlv_context); 193#ifdef ENABLE_CLASSIC 194 hci_set_link_key_db(btstack_link_key_db_tlv_get_instance(tlv_impl, &tlv_context)); 195#endif 196#ifdef ENABLE_BLE 197 le_device_db_tlv_configure(tlv_impl, &tlv_context); --- 103 unchanged lines hidden --- |