Skip to content

Commit 4b4b2dc

Browse files
committed
GenericAccessService: remove unused device name/appearance functions due to API changes
1 parent 397373f commit 4b4b2dc

File tree

1 file changed

+0
-74
lines changed

1 file changed

+0
-74
lines changed

features/FEATURE_BLE/ble/pal/GenericAccessService.h

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#include "GapTypes.h"
2121
#include "ble/BLETypes.h"
2222
#include "ble/blecommon.h"
23-
#include "ble/GapAdvertisingData.h"
2423
#include "ble/Gap.h"
2524

2625
namespace ble {
@@ -44,79 +43,6 @@ struct GenericAccessService {
4443
*/
4544
virtual ~GenericAccessService() { }
4645

47-
/**
48-
* Acquire the length of the device name.
49-
* The length can range from 0 (no device name) to 248 octets
50-
*
51-
* @param length The length of the device name currently stored in the GAP
52-
* service.
53-
*
54-
* @return BLE_ERROR_NONE in case of success or the appropriate error code
55-
* otherwise.
56-
*
57-
* @see Bluetooth 4.2 Vol 3 PartC: 12.1 - Device Name Characteristic
58-
*/
59-
virtual ble_error_t get_device_name_length(uint8_t& length) = 0;
60-
61-
/**
62-
* Get the current device name.
63-
* The result is stored in the array pass in input if the operation
64-
* succeed. Prior to this call the length of the device name can be acquired
65-
* with a call to get_device_name_length.
66-
*
67-
* @param The array which will host the device name
68-
*
69-
* @return BLE_ERROR_NONE in case of success or the appropriate error code
70-
* otherwise.
71-
*
72-
* @see Bluetooth 4.2 Vol 3 PartC: 12.1 - Device Name Characteristic
73-
*/
74-
virtual ble_error_t get_device_name(Span<uint8_t>& array) = 0;
75-
76-
/**
77-
* Set the value of the device name characteristic exposed by the GAP GATT
78-
* service.
79-
*
80-
* @param device_name The name of the device. If NULL the device name
81-
* value has a length of 0.
82-
*
83-
* @return BLE_ERROR_NONE in case of success or the appropriate error code
84-
* otherwise.
85-
*
86-
* @see Bluetooth 4.2 Vol 3 PartC: 12.1 - Device Name Characteristic
87-
*/
88-
virtual ble_error_t set_device_name(const uint8_t* device_name) = 0;
89-
90-
/**
91-
* Acquire the appearance stored in the appearance characteristic of the GAP
92-
* GATT service.
93-
*
94-
* @param appearance: If the call succeed will contain the value of the
95-
* appearance characteristic.
96-
*
97-
* @return BLE_ERROR_NONE in case of success or the appropriate error code
98-
* otherwise.
99-
*
100-
* @see Bluetooth 4.2 Vol 3 PartC: 12.2 - Appearance Characteristic
101-
*/
102-
virtual ble_error_t get_appearance(
103-
GapAdvertisingData::Appearance& appearance
104-
) = 0;
105-
106-
/**
107-
* Set the value of the appearance characteristic of the GAP GATT service.
108-
*
109-
* @param appearance: The appearance to set.
110-
*
111-
* @return BLE_ERROR_NONE in case of success or the appropriate error code
112-
* otherwise.
113-
*
114-
* @see Bluetooth 4.2 Vol 3 PartC: 12.2 - Appearance Characteristic
115-
*/
116-
virtual ble_error_t set_appearance(
117-
GapAdvertisingData::Appearance appearance
118-
) = 0;
119-
12046
/**
12147
* Acquire the peripheral prefered connection parameters stored in the GAP
12248
* GATT service.

0 commit comments

Comments
 (0)