From ee9db0c76aad7367161812150c7ea75f8401f64b Mon Sep 17 00:00:00 2001 From: zhiweijian Date: Mon, 25 Jun 2018 16:04:20 +0800 Subject: [PATCH] Component/bt: modify service uuid of ble_sec_gatts demo --- .../gatt_security_client/main/example_ble_sec_gattc_demo.c | 2 +- .../gatt_security_server/main/example_ble_sec_gatts_demo.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/bluetooth/gatt_security_client/main/example_ble_sec_gattc_demo.c b/examples/bluetooth/gatt_security_client/main/example_ble_sec_gattc_demo.c index 16a23fdd6a..71c2a415ac 100644 --- a/examples/bluetooth/gatt_security_client/main/example_ble_sec_gattc_demo.c +++ b/examples/bluetooth/gatt_security_client/main/example_ble_sec_gattc_demo.c @@ -33,7 +33,7 @@ #include "freertos/FreeRTOS.h" #define GATTC_TAG "SEC_GATTC_DEMO" -#define REMOTE_SERVICE_UUID 0x1809 +#define REMOTE_SERVICE_UUID ESP_GATT_UUID_HEART_RATE_SVC #define REMOTE_NOTIFY_UUID 0x2A37 static esp_gattc_char_elem_t *char_elem_result = NULL; diff --git a/examples/bluetooth/gatt_security_server/main/example_ble_sec_gatts_demo.c b/examples/bluetooth/gatt_security_server/main/example_ble_sec_gatts_demo.c index 3f3ce98f0e..de4376d743 100644 --- a/examples/bluetooth/gatt_security_server/main/example_ble_sec_gatts_demo.c +++ b/examples/bluetooth/gatt_security_server/main/example_ble_sec_gatts_demo.c @@ -119,7 +119,7 @@ static struct gatts_profile_inst heart_rate_profile_tab[HEART_PROFILE_NUM] = { */ /// Heart Rate Sensor Service -static const uint16_t heart_rate_svc = ESP_GATT_UUID_HEALTH_THERMOM_SVC; +static const uint16_t heart_rate_svc = ESP_GATT_UUID_HEART_RATE_SVC; #define CHAR_DECLARATION_SIZE (sizeof(uint8_t)) static const uint16_t primary_service_uuid = ESP_GATT_UUID_PRI_SERVICE;