Spec Compliance Interface name change.
authorsanjaysh <sanjay1.sharma@intel.com>
Fri, 15 May 2015 18:54:03 +0000 (11:54 -0700)
committerUze Choi <uzchoi@samsung.com>
Wed, 20 May 2015 05:03:29 +0000 (05:03 +0000)
Additional files modified service folder,
for the default interface names

Change-Id: Id21b7868f4eef3250274cd837a6ea35d95cd792f
Signed-off-by: sanjaysh <sanjay1.sharma@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1013
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp
service/soft-sensor-manager/SampleApp/arduino/Reference_Thing/src/reference.cpp
service/soft-sensor-manager/SampleApp/arduino/Reference_Thing/src/trackee.cpp
service/soft-sensor-manager/SampleApp/arduino/THSensorApp/src/thserver.cpp
service/soft-sensor-manager/SampleApp/arduino/THSensorApp1/src/thserver.cpp
service/soft-sensor-manager/SampleApp/arduino/Trackee_Thing/src/trackee.cpp

index d487852..2cf8880 100644 (file)
@@ -813,7 +813,7 @@ void *presenceNotificationGenerator(void *param)
             sleep(1);
             res = OCCreateResource(&presenceNotificationHandles[i],
                     presenceNotificationResources.at(i).c_str(),
-                    "oc.mi.def",
+                    OC_RSRVD_INTERFACE_DEFAULT,
                     presenceNotificationUris.at(i).c_str(),
                     OCNOPEntityHandlerCb,
                     OC_DISCOVERABLE|OC_OBSERVABLE);
@@ -985,7 +985,7 @@ int createLightResource (char *uri, LightResource *lightResource)
     lightResource->power= 0;
     OCStackResult res = OCCreateResource(&(lightResource->handle),
             "core.light",
-            "oc.mi.def",
+            OC_RSRVD_INTERFACE_DEFAULT,
             uri,
             OCEntityHandlerCb,
             OC_DISCOVERABLE|OC_OBSERVABLE);
index f8add27..0dff6c5 100644 (file)
@@ -242,7 +242,7 @@ void createREFERResource()
 
     OCStackResult res = OCCreateResource(&REFER.m_handle,
                                          "SSManager.Sensor",
-                                         "oc.mi.def",
+                                         OC_RSRVD_INTERFACE_DEFAULT,
                                          "/Reference_Thing",
                                          OCEntityHandlerCb,
                                          OC_DISCOVERABLE | OC_OBSERVABLE);
index bb7e8bb..82780a5 100644 (file)
@@ -213,7 +213,7 @@ void createResource()
 
     OCStackResult res = OCCreateResource(&m_handle,
                                          "SSManager.Sensor",
-                                         "oc.mi.def",
+                                         OC_RSRVD_INTERFACE_DEFAULT,
                                          "/Tracker_Thing",
                                          OCEntityHandlerCb,
                                          OC_DISCOVERABLE | OC_OBSERVABLE);
index 536c610..5d6ca84 100644 (file)
@@ -395,7 +395,7 @@ void createTHResource()
 
     OCStackResult res = OCCreateResource(&TH.m_handle,
                                          "SSManager.Sensor",
-                                         "oc.mi.def",
+                                         OC_RSRVD_INTERFACE_DEFAULT,
                                          "/Thing_TempHumSensor",
                                          OCEntityHandlerCb,
                                          OC_DISCOVERABLE | OC_OBSERVABLE);
index 4fa87d2..047ee14 100644 (file)
@@ -395,7 +395,7 @@ void createTHResource()
 
     OCStackResult res = OCCreateResource(&TH.m_handle,
                                          "SSManager.Sensor",
-                                         "oc.mi.def",
+                                         OC_RSRVD_INTERFACE_DEFAULT,
                                          "/Thing_TempHumSensor1",
                                          OCEntityHandlerCb,
                                          OC_DISCOVERABLE | OC_OBSERVABLE);
index cb67a52..312ae75 100644 (file)
@@ -395,7 +395,7 @@ void createResource()
 
     OCStackResult res = OCCreateResource(&m_handle,
                                          "SSManager.Sensor",
-                                         "oc.mi.def",
+                                         OC_RSRVD_INTERFACE_DEFAULT,
                                          "/Tracker_Thing",
                                          OCEntityHandlerCb,
                                          OC_DISCOVERABLE | OC_OBSERVABLE);