20
20
#include " GapTypes.h"
21
21
#include " ble/BLETypes.h"
22
22
#include " ble/blecommon.h"
23
- #include " ble/GapAdvertisingData.h"
24
23
#include " ble/Gap.h"
25
24
26
25
namespace ble {
@@ -44,79 +43,6 @@ struct GenericAccessService {
44
43
*/
45
44
virtual ~GenericAccessService () { }
46
45
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
-
120
46
/* *
121
47
* Acquire the peripheral prefered connection parameters stored in the GAP
122
48
* GATT service.
0 commit comments