File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed
features/FEATURE_BLE/ble/services Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 26
26
27
27
#include " ble/UUID.h"
28
28
#include " ble/BLE.h"
29
+ #include " ble/pal/Deprecated.h"
29
30
30
31
#if BLE_FEATURE_GATT_SERVER
31
32
33
+ BLE_DEPRECATED_API_USE_BEGIN ()
34
+
32
35
extern const uint8_t UARTServiceBaseUUID[UUID::LENGTH_OF_LONG_UUID];
33
36
extern const uint16_t UARTServiceShortUUID;
34
37
extern const uint16_t UARTServiceTXCharacteristicShortUUID;
@@ -41,9 +44,15 @@ extern const uint8_t UARTServiceTXCharacteristicUUID[UUID::LENGTH_OF_LONG_UUID]
41
44
extern const uint8_t UARTServiceRXCharacteristicUUID[UUID::LENGTH_OF_LONG_UUID];
42
45
43
46
/* *
44
- * @class UARTService.
45
- * @brief BLE Service to enable UART over BLE.
46
- */
47
+ * @class UARTService.
48
+ * @brief BLE Service to enable UART over BLE.
49
+ *
50
+ * @deprecated This service is deprecated, and no replacement is currently available.
51
+ */
52
+ MBED_DEPRECATED_SINCE (
53
+ " mbed-os-5.13" ,
54
+ " This service is deprecated, and no replacement is currently available."
55
+ )
47
56
class UARTService {
48
57
public:
49
58
/* * Maximum length of data (in bytes) that the UART service module can transmit to the peer. */
@@ -217,6 +226,8 @@ class UARTService {
217
226
* application. */
218
227
};
219
228
229
+ BLE_DEPRECATED_API_USE_END ()
230
+
220
231
#endif // BLE_FEATURE_GATT_SERVER
221
232
222
233
#endif /* #ifndef __BLE_UART_SERVICE_H__*/
Original file line number Diff line number Diff line change 18
18
#define SERVICES_URIBEACONCONFIGSERVICE_H_
19
19
20
20
#include " ble/BLE.h"
21
+ #include " ble/pal/Deprecated.h"
21
22
22
23
#ifdef YOTTA_CFG_MBED_OS
23
24
#include " mbed-drivers/mbed.h"
28
29
#if BLE_FEATURE_GATT_SERVER
29
30
#if BLE_ROLE_BROADCASTER
30
31
32
+ BLE_DEPRECATED_API_USE_BEGIN ()
33
+
31
34
extern const uint8_t UUID_URI_BEACON_SERVICE[UUID::LENGTH_OF_LONG_UUID];
32
35
extern const uint8_t UUID_LOCK_STATE_CHAR[UUID::LENGTH_OF_LONG_UUID];
33
36
extern const uint8_t UUID_LOCK_CHAR[UUID::LENGTH_OF_LONG_UUID];
@@ -483,6 +486,8 @@ class URIBeaconConfigService {
483
486
}
484
487
};
485
488
489
+ BLE_DEPRECATED_API_USE_END ()
490
+
486
491
#endif // BLE_ROLE_BROADCASTER
487
492
#endif // BLE_FEATURE_GATT_SERVER
488
493
Original file line number Diff line number Diff line change 18
18
19
19
#include " cmsis_compiler.h"
20
20
#include " ble/BLE.h"
21
+ #include " ble/pal/Deprecated.h"
21
22
22
23
#if BLE_FEATURE_GATT_SERVER
23
24
25
+ BLE_DEPRECATED_API_USE_BEGIN ()
26
+
24
27
/* *
25
28
* iBeacon Service.
26
29
*
@@ -253,6 +256,8 @@ class iBeacon {
253
256
*/
254
257
typedef iBeacon iBeaconService;
255
258
259
+ BLE_DEPRECATED_API_USE_END ()
260
+
256
261
#endif // BLE_FEATURE_GATT_SERVER
257
262
258
263
#endif // MBED_BLE_IBEACON_H__
You can’t perform that action at this time.
0 commit comments