]> granicus.if.org Git - esp-idf/commitdiff
Component/bt: modify service uuid of ble_sec_gatts demo
authorzhiweijian <zhiweijian@espressif.com>
Mon, 25 Jun 2018 08:04:20 +0000 (16:04 +0800)
committerzhiweijian <zhiweijian@espressif.com>
Mon, 25 Jun 2018 08:04:20 +0000 (16:04 +0800)
examples/bluetooth/gatt_security_client/main/example_ble_sec_gattc_demo.c
examples/bluetooth/gatt_security_server/main/example_ble_sec_gatts_demo.c

index 16a23fdd6a66c981d078ab456d74a17223290e7b..71c2a415ac6cd17581f8f43022d2dacb6f019805 100644 (file)
@@ -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;
index 3f3ce98f0ebe8b852a05aedfc564fa0c093daafe..de4376d743f5e4fb81323889bd6664ca56eb3807 100644 (file)
@@ -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;