From a16e6faa29c0bf20a2bf437a96a79acc1f44433a Mon Sep 17 00:00:00 2001 From: "jyong2.kim" Date: Wed, 20 May 2015 22:00:46 +0900 Subject: [PATCH] Update Unicast Discovery URI for Notification Manager Change-Id: I46fa1f06e4e5f20567b8308c14a4a2b60d776024 Signed-off-by: jyong2.kim Reviewed-on: https://gerrit.iotivity.org/gerrit/1050 Tested-by: jenkins-iotivity Reviewed-by: Uze Choi --- service/notification-manager/NotificationManager/include/hosting.h | 3 ++- .../SampleApp/linux/sampleConsumer/SampleConsumer.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/service/notification-manager/NotificationManager/include/hosting.h b/service/notification-manager/NotificationManager/include/hosting.h index c85eea8..5a18a0a 100755 --- a/service/notification-manager/NotificationManager/include/hosting.h +++ b/service/notification-manager/NotificationManager/include/hosting.h @@ -30,7 +30,8 @@ #include "ocstack.h" #include "logger.h" -#define OC_TRANSPORT OC_ALL +//#define OC_TRANSPORT OC_ALL +#define OC_TRANSPORT OC_IPV4 #ifdef __cplusplus extern "C" { diff --git a/service/notification-manager/SampleApp/linux/sampleConsumer/SampleConsumer.cpp b/service/notification-manager/SampleApp/linux/sampleConsumer/SampleConsumer.cpp index 054465d..38a8682 100755 --- a/service/notification-manager/SampleApp/linux/sampleConsumer/SampleConsumer.cpp +++ b/service/notification-manager/SampleApp/linux/sampleConsumer/SampleConsumer.cpp @@ -34,7 +34,7 @@ using namespace OC; const int SUCCESS_RESPONSE = OC_STACK_OK; -#define OC_WELL_KNOWN_COORDINATING_QUERY "224.0.1.187:5683/oc/core?rt=Resource.Hosting" +#define OC_WELL_KNOWN_COORDINATING_QUERY "/oc/core?rt=Resource.Hosting" #define OBSERVE 1 #define GET 2 -- 2.7.4