-
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.
Initial changes to include adv data in the sample
- Loading branch information
Showing
7 changed files
with
111 additions
and
42 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
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
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