/* Samsung Accessary Protocol UUIDs */
#define WEARABLE_OLD_SAP_UUID "a49eb41e-cb06-495c-9f4f-aa80a90cdf4a"
#define WEARABLE_NEW_SAP_UUID "a49eb41e-cb06-495c-9f4f-bb80a90cdf00"
+#define OCF_UUID "ADE3D529-C784-4F63-A987-EB69F70EE816"
#endif
/* GATT UUIDs section */
return;
}
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ bt_uuid_t svc_uuid;
+ if (gatt_db_attribute_get_service_uuid(attrib, &svc_uuid)) {
+ bt_uuid_t ocf_uuid;
+ bt_string_to_uuid(&ocf_uuid, OCF_UUID);
+ if (!bt_uuid_cmp(&svc_uuid, &ocf_uuid)) {
+ DBG("Do not send notification for ocf service");
+ return;
+ }
+ }
+#endif
+
put_le16(start, value);
put_le16(end, value + 2);
return false;
}
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ bt_uuid_to_string(&uuid, str, sizeof(str));
+ if (!strcasecmp(str, OCF_UUID)) {
+ DBG("Use 1st handle for ocf service");
+ handle = 1;
+ }
+#endif
+
service->attrib = gatt_db_insert_service(service->app->database->db,
handle, &uuid,
primary, service->attr_cnt);
db->crypto = bt_crypto_new();
db->services = queue_new();
db->notify_list = queue_new();
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ db->next_handle = 0x0010;
+#else
db->next_handle = 0x0001;
+#endif
return gatt_db_ref(db);
}