mirror of https://github.com/ARMmbed/mbed-os.git
Suppress warnings of deprecated API in deprecated services
Services that already have deprecation notices in place should not trigger more warnings from the compiler.pull/10635/head
parent
31edc25ae7
commit
f3c29df377
|
@ -26,9 +26,12 @@
|
|||
|
||||
#include "ble/UUID.h"
|
||||
#include "ble/BLE.h"
|
||||
#include "ble/pal/Deprecated.h"
|
||||
|
||||
#if BLE_FEATURE_GATT_SERVER
|
||||
|
||||
BLE_DEPRECATED_API_USE_BEGIN()
|
||||
|
||||
extern const uint8_t UARTServiceBaseUUID[UUID::LENGTH_OF_LONG_UUID];
|
||||
extern const uint16_t UARTServiceShortUUID;
|
||||
extern const uint16_t UARTServiceTXCharacteristicShortUUID;
|
||||
|
@ -223,6 +226,8 @@ protected:
|
|||
* application. */
|
||||
};
|
||||
|
||||
BLE_DEPRECATED_API_USE_END()
|
||||
|
||||
#endif // BLE_FEATURE_GATT_SERVER
|
||||
|
||||
#endif /* #ifndef __BLE_UART_SERVICE_H__*/
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#define SERVICES_URIBEACONCONFIGSERVICE_H_
|
||||
|
||||
#include "ble/BLE.h"
|
||||
#include "ble/pal/Deprecated.h"
|
||||
|
||||
#ifdef YOTTA_CFG_MBED_OS
|
||||
#include "mbed-drivers/mbed.h"
|
||||
|
@ -28,6 +29,8 @@
|
|||
#if BLE_FEATURE_GATT_SERVER
|
||||
#if BLE_ROLE_BROADCASTER
|
||||
|
||||
BLE_DEPRECATED_API_USE_BEGIN()
|
||||
|
||||
extern const uint8_t UUID_URI_BEACON_SERVICE[UUID::LENGTH_OF_LONG_UUID];
|
||||
extern const uint8_t UUID_LOCK_STATE_CHAR[UUID::LENGTH_OF_LONG_UUID];
|
||||
extern const uint8_t UUID_LOCK_CHAR[UUID::LENGTH_OF_LONG_UUID];
|
||||
|
@ -483,6 +486,8 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
BLE_DEPRECATED_API_USE_END()
|
||||
|
||||
#endif // BLE_ROLE_BROADCASTER
|
||||
#endif // BLE_FEATURE_GATT_SERVER
|
||||
|
||||
|
|
|
@ -18,9 +18,12 @@
|
|||
|
||||
#include "cmsis_compiler.h"
|
||||
#include "ble/BLE.h"
|
||||
#include "ble/pal/Deprecated.h"
|
||||
|
||||
#if BLE_FEATURE_GATT_SERVER
|
||||
|
||||
BLE_DEPRECATED_API_USE_BEGIN()
|
||||
|
||||
/**
|
||||
* iBeacon Service.
|
||||
*
|
||||
|
@ -253,6 +256,8 @@ protected:
|
|||
*/
|
||||
typedef iBeacon iBeaconService;
|
||||
|
||||
BLE_DEPRECATED_API_USE_END()
|
||||
|
||||
#endif // BLE_FEATURE_GATT_SERVER
|
||||
|
||||
#endif //MBED_BLE_IBEACON_H__
|
||||
|
|
Loading…
Reference in New Issue