Skip to content

Commit 06a33d3

Browse files
authored
Merge pull request #14436 from paul-szczepanek-arm/remove-services
BLE: replace obsolete services with the new services repo
2 parents b1e26c6 + d594aa2 commit 06a33d3

File tree

7 files changed

+31
-0
lines changed

7 files changed

+31
-0
lines changed

connectivity/FEATURE_BLE/include/ble/services/BatteryService.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* MBED_DEPRECATED */
20+
#warning "These services are deprecated and will be removed. Please see services.md for details about replacement services."
21+
1922
#ifndef MBED_BLE_BATTERY_SERVICE_H__
2023
#define MBED_BLE_BATTERY_SERVICE_H__
2124

connectivity/FEATURE_BLE/include/ble/services/DeviceInformationService.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* MBED_DEPRECATED */
20+
#warning "These services are deprecated and will be removed. Please see services.md for details about replacement services."
21+
1922
#ifndef __BLE_DEVICE_INFORMATION_SERVICE_H__
2023
#define __BLE_DEVICE_INFORMATION_SERVICE_H__
2124

connectivity/FEATURE_BLE/include/ble/services/EnvironmentalService.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* MBED_DEPRECATED */
20+
#warning "These services are deprecated and will be removed. Please see services.md for details about replacement services."
21+
1922
#ifndef __BLE_ENVIRONMENTAL_SERVICE_H__
2023
#define __BLE_ENVIRONMENTAL_SERVICE_H__
2124

connectivity/FEATURE_BLE/include/ble/services/HealthThermometerService.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* MBED_DEPRECATED */
20+
#warning "These services are deprecated and will be removed. Please see services.md for details about replacement services."
21+
1922
#ifndef __BLE_HEALTH_THERMOMETER_SERVICE_H__
2023
#define __BLE_HEALTH_THERMOMETER_SERVICE_H__
2124

connectivity/FEATURE_BLE/include/ble/services/HeartRateService.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* MBED_DEPRECATED */
20+
#warning "These services are deprecated and will be removed. Please see services.md for details about replacement services."
21+
1922
#ifndef MBED_BLE_HEART_RATE_SERVICE_H__
2023
#define MBED_BLE_HEART_RATE_SERVICE_H__
2124

connectivity/FEATURE_BLE/include/ble/services/LinkLossService.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
* limitations under the License.
1717
*/
1818

19+
/* MBED_DEPRECATED */
20+
#warning "These services are deprecated and will be removed. Please see services.md for details about replacement services."
21+
1922
#ifndef __BLE_LINK_LOSS_SERVICE_H__
2023
#define __BLE_LINK_LOSS_SERVICE_H__
2124

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Mbed OS BLE services
2+
3+
BLE services are available in the https://github.com/ARMmbed/mbed-os-experimental-ble-services repository. It's a
4+
community effort and contains services created by mbed-os team, our partners and mbed-os users.
5+
6+
To use the services there add the repository to your project by adding a 'mbed-os-experimental-ble-services.lib' file
7+
containing the link to the repo like so:
8+
```
9+
https://github.com/ARMmbed/mbed-os-experimental-ble-services
10+
```
11+
12+
Each BLE service is an Mbed OS library. To use it with new cmake based mbed-tools you will need to add the library
13+
to your link libraries for your application.

0 commit comments

Comments
 (0)