-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from vChavezB/adv_data_sample
Added API to get UUID, use adv data in the uptime sample
- Loading branch information
Showing
12 changed files
with
137 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
/*!***************************************************************** | ||
* Copyright 2023, Victor Chavez | ||
* Copyright 2023-2024 Victor Chavez | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* @file ble_utils.hpp | ||
* @author Victor Chavez ([email protected]) | ||
* @author Victor Chavez ([email protected]) | ||
* | ||
* @brief | ||
* BLE C++ Utilities for development of BLE GATT applications with the Zephyr OS | ||
|
@@ -85,6 +85,13 @@ class Characteristic | |
return 0; | ||
} | ||
|
||
/** | ||
* @brief Get the UUID of the characteristic | ||
* | ||
* @return const bt_uuid* Pointer to the UUID of the characteristic | ||
*/ | ||
const bt_uuid * get_uuid(); | ||
|
||
private: | ||
friend ICharacteristicCCC; | ||
friend Service; | ||
|
@@ -287,6 +294,14 @@ class Service | |
*/ | ||
int init(); | ||
|
||
|
||
/** | ||
* @brief Get the UUID of the service | ||
* | ||
* @return const bt_uuid* Pointer to the UUID of the service | ||
*/ | ||
const bt_uuid * get_uuid(); | ||
|
||
private: | ||
static constexpr uint8_t MAX_ATTR = CONFIG_BLE_UTILS_MAX_ATTR; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Disable HCI ACL for use with Android Emulator | ||
# Refer to https://github.com/google/bumble/issues/220#issuecomment-1651200456 | ||
CONFIG_BT_HCI_ACL_FLOW_CONTROL=n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters