iotivity.git
3 years agoMerge branch 'cloud-interface' 49/10449/1
Jee Hyeok Kim [Sat, 13 Aug 2016 04:52:48 +0000 (13:52 +0900)]
Merge branch 'cloud-interface'

Change-Id: If7c53ffecdbc4c9c4386ce996e7e746edb673b7c
Signed-off-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoFix keep-alive to filter correctly. 89/10189/6
Jee Hyeok Kim [Tue, 9 Aug 2016 07:29:25 +0000 (16:29 +0900)]
Fix keep-alive to filter correctly.

1. Fix keep-alive to filter correctly.
2. Cleanup netty pipeline.

Change-Id: Id99916f22c62f43ace4ae1a605e4b8adf7a65c92
Signed-off-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10189
Reviewed-by: Minji Park <minjii.park@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
3 years agoUpdate Mediator code for more readable using const. 23/10323/2
Heewon Park [Fri, 12 Aug 2016 05:44:50 +0000 (14:44 +0900)]
Update Mediator code for more readable using const.

Change-Id: I87f6222908c30e14f5c7963859a0310dd06ac03f
Signed-off-by: Heewon Park <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10323
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoAS unit test included 37/10137/8
yeonghun.nam [Thu, 11 Aug 2016 07:44:12 +0000 (16:44 +0900)]
AS unit test included

Change-Id: I0a0e56f12817843d14f82f361ad0e52c5496045f
Signed-off-by: yeonghun.nam <yeonghun.nam@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10137
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoCI unit test included 13/9913/16
Jung Seungho [Wed, 10 Aug 2016 02:15:16 +0000 (11:15 +0900)]
CI unit test included

Change-Id: I68b655f2a07db01ea4fca4c580702eb4a10ae66f
Signed-off-by: yeonghun.nam <yeonghun.nam@samsung.com>
Signed-off-by: Jung Seungho <shonest.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9913
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoImplement acl/invite resource in cloud account server. 75/9975/38
Jung Seungho [Wed, 10 Aug 2016 09:52:35 +0000 (18:52 +0900)]
Implement acl/invite resource in cloud account server.

Add invite feature to invite user

Change-Id: I7a4c1922de4b312afda92423338092423fa573c7
Signed-off-by: Minji Park <minjii.park@samsung.com>
Signed-off-by: Jung Seungho <shonest.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9975
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoUpdate Common data model's Constructor & change security '.dat' files. 13/10313/2
Heewon Park [Fri, 12 Aug 2016 01:55:32 +0000 (10:55 +0900)]
Update Common data model's Constructor & change security '.dat' files.

Change-Id: I30a6aa0abe2b52b637fd86045bd0a81ababcb921
Signed-off-by: Heewon Park <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10313
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoRemove '/.well-known' from URI 09/10309/2
Jaehong Jo [Thu, 11 Aug 2016 23:15:02 +0000 (08:15 +0900)]
Remove '/.well-known' from URI

According to a OCF spec

Change-Id: I54167589ba4fc03282944ecf4ba06e24d83b1de7
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10309
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoAdded Android java API for Cloud MQ Client. 99/9999/11
jihwan.seo [Thu, 4 Aug 2016 00:13:08 +0000 (09:13 +0900)]
Added Android java API for Cloud MQ Client.

- added Native Caller for MQ API

Change-Id: I7a15877cd041b8321088c9f8ec530fe77b390b2f
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9999
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
3 years agoClean up encodeAddressForRFC6874 routine 51/10151/3
David Antler [Mon, 8 Aug 2016 12:25:39 +0000 (05:25 -0700)]
Clean up encodeAddressForRFC6874 routine

Change-Id: Ie4b816186dc7bb808f6fdb3a2836552bfdf32772
Signed-off-by: David Antler <david.a.antler@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10151
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
3 years agoMerge "Merge branch 'notification-service'"
Madan Lanka [Thu, 11 Aug 2016 15:57:54 +0000 (15:57 +0000)]
Merge "Merge branch 'notification-service'"

3 years agoModified Scene UnitTest 67/10267/2
ChaJiWon [Wed, 6 Jul 2016 04:23:24 +0000 (13:23 +0900)]
Modified Scene UnitTest

Scene container is changed to unordered_map in SceneCollection.
Apply the change to 'getAllSceneInstance' logic.

Change-Id: I48916883b115c7eb57cfe63d1ae55d6d2ee1c430
Signed-off-by: ChaJiWon <jw_wonny.cha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9205
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit f162cb2234428750943373d939415fb09fd103d8)
Reviewed-on: https://gerrit.iotivity.org/gerrit/10267
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoMerge branch 'notification-service' 79/10279/1
ch79.cho [Thu, 11 Aug 2016 11:24:15 +0000 (20:24 +0900)]
Merge branch 'notification-service'

Notification service feature is added newly.

Change-Id: I3ec6e84ea7ad9c247f0f444889bf7e326b6c8e11
Signed-off-by: ch79.cho <ch79.cho@samsung.com>
3 years agoMove the removeDeviceWithUuid method to OCSecure class as static method. 59/10059/2
Chul Lee [Fri, 5 Aug 2016 01:15:12 +0000 (10:15 +0900)]
Move the removeDeviceWithUuid method to OCSecure class as static method.

Change-Id: Ic8a9904990b3bbd27c82e43f1b1105aa60b00087
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10059
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
3 years agoMerge "Merge remote-tracking branch 'origin/extended-easysetup'"
Madan Lanka [Thu, 11 Aug 2016 05:11:55 +0000 (05:11 +0000)]
Merge "Merge remote-tracking branch 'origin/extended-easysetup'"

3 years ago[IOT-1204] Add zero terminator before logging 51/9851/2
Dan Mihai [Wed, 27 Jul 2016 22:13:20 +0000 (15:13 -0700)]
[IOT-1204] Add zero terminator before logging

Change-Id: I8a8b94aad4b00e22a59a728a2f6802a3d18bff24
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9851
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
3 years agoMerge remote-tracking branch 'origin/extended-easysetup' 45/10245/1
Jihun Ha [Thu, 11 Aug 2016 02:06:17 +0000 (11:06 +0900)]
Merge remote-tracking branch 'origin/extended-easysetup'

Change-Id: I9d846ee6afcfa18a53081c606401ffe4b8d4d18c
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
3 years agoImplement x509 certeficate resource in cloud account server. 75/10075/8
Joonghwan Lee [Wed, 10 Aug 2016 09:52:35 +0000 (18:52 +0900)]
Implement x509 certeficate resource in cloud account server.
 - Certeficate builder modify.
 - Added Certeficate resource to account server.
 - Added Certrficate configuration.
 - TODO: Implement Certeficate storage.

Patch #7: Rebase with the latest branch

Signed-off-by: i.pazderskyy <i.pazderskyy@samsung.com>
Signed-off-by: Andrii Androsov <a.androsov@samsung.com>
Change-Id: I4a350ff96bc4d4c3f086d0790715576026192ee3
Signed-off-by: Andrii Androsov <a.androsov@samsung.com>
Signed-off-by: Joonghwan Lee <jh05.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10075
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoUpdate Mediator sample App. 27/10227/5 extended-easysetup
Jihun Ha [Wed, 10 Aug 2016 12:45:13 +0000 (21:45 +0900)]
Update Mediator sample App.

 - Add Cloud feature (using Iotivity Cloud)

Change-Id: I651121b8cd83e83178d3cfce6ff49e9f1dee0ec5
Signed-off-by: Heewon Park <h_w.park@samsung.com>
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10227
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoupdate mediator unittest and implement validation check logic. 97/10197/6
Heewon Park [Wed, 10 Aug 2016 09:22:53 +0000 (18:22 +0900)]
update mediator unittest and implement validation check logic.

Change-Id: Ieb53eb1a659d7ddf2152ac2d3b8494a80943c62a
Signed-off-by: Heewon Park <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10197
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoResolved tizen build issue regarding ip network 21/10221/2
hyuna0213.jo [Wed, 10 Aug 2016 05:23:55 +0000 (14:23 +0900)]
Resolved tizen build issue regarding ip network

Resolved tizen build issue regarding ip network.

Change-Id: I8f18efd4fdeff40fdb5e6a3c13522be461ba8bd8
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10221
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years ago[Enrollee] DeleteEasySetupResourcess() is fixed in resource handler. 07/10207/3
sy01.youn [Wed, 10 Aug 2016 00:28:17 +0000 (09:28 +0900)]
[Enrollee] DeleteEasySetupResourcess() is fixed in resource handler.
   . Unbind logic is added
   . Check whether handle is NULL or not

Change-Id: I0b69d29735af06b75b4e775484cf835ca12007f0
Signed-off-by: sy01.youn <sy01.youn@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10207
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoImplement acl/group resource in cloud account server. 65/9665/98
Glen Youngjin Kim [Fri, 29 Jul 2016 15:12:34 +0000 (18:12 +0300)]
Implement acl/group resource in cloud account server.

1. Account server restructured. (API design, naming)
2. Modify to use the tokens issued by OAuth2 providers.
3. Add group feature to share devices.

Change-Id: I1b15aadcb0b7715a41bce7a96363b8ab7f612d0a
Signed-off-by: Glen Youngjin Kim <glen.kim@samsung.com>
Signed-off-by: eunok.shin <eunok.shin@samsung.com>
Signed-off-by: Jung Seungho <shonest.jung@samsung.com>
Signed-off-by: Glen Youngjin Kim <glen.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9665
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoadded APIs related to account in OCAccountManager 71/10171/3
Jaewook Jung [Tue, 9 Aug 2016 07:39:08 +0000 (16:39 +0900)]
added APIs related to account in OCAccountManager

added 2 APIs related to account
: searchUser, deleteDevice

and modified signOut API due to the change of the specification
that signOut message has no more any payload but only login property.

Change-Id: Ida9abb953d1bed0dae0fb4f0cb2bed522bc8a3dd
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10171
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoDARWIN BUGFIX: [-Wreturn-type] error void fn returns 0 67/8667/2
Gregg Reynolds [Wed, 15 Jun 2016 15:27:08 +0000 (10:27 -0500)]
DARWIN BUGFIX: [-Wreturn-type] error void fn returns 0

Two void functions have "return 0;", chg to "return;"

Change-Id: Icdbb91891f01e8d56427d952722da776d4a34f78
Signed-off-by: Gregg Reynolds <reynolds-gregg@norc.org>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8667
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
3 years agoCleanup Maven build script 65/9965/6
Jee Hyeok Kim [Tue, 2 Aug 2016 00:00:34 +0000 (09:00 +0900)]
Cleanup Maven build script

1. Cleanup Maven build script

Change-Id: Ibf455e52f064b7b0cc5e4cd00beda51d25c8950d
Signed-off-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9965
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jung seungho <shonest.jung@samsung.com>
3 years agoFix error response and error code 19/10119/3
Jee Hyeok Kim [Mon, 8 Aug 2016 07:07:32 +0000 (16:07 +0900)]
Fix error response and error code

1. Fix packet forawrding to client correctly
   when resource find receives error from account server,

2. Change response code to use CHANGED when POST method succeed.

Change-Id: Ibf7b1ba6996c2bcef086f3c4361f38036f4a8c71
Signed-off-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10119
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jung seungho <shonest.jung@samsung.com>
3 years agoupdated Readme.scons files for Message Queue(MQ) 41/10141/2
jihwan.seo [Mon, 8 Aug 2016 11:02:02 +0000 (20:02 +0900)]
updated Readme.scons files for Message Queue(MQ)

Change-Id: I2143d908e7323acd8505a4024faf4f60ac009f43
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10141
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoAdd setLocation API for PUT response 23/10123/3
Jee Hyeok Kim [Mon, 8 Aug 2016 08:03:42 +0000 (17:03 +0900)]
Add setLocation API for PUT response

1. Add setLocation for resource creator
2. Apply setLocation to MQ server

Change-Id: I143dd14471bb9b8055f7d3a60e9e58c22697d481
Signed-off-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10123
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Minji Park <minjii.park@samsung.com>
3 years agoAdd RD C++ API to supporting QoS in OCPlatform 07/9907/3
hyuna0213.jo [Mon, 1 Aug 2016 22:51:39 +0000 (07:51 +0900)]
Add RD C++ API to supporting QoS in OCPlatform

- add publishResourceToRD() overload function
- add deleteResourceFromRD() overload function
- remove unnecessary code
- add null check logic for input parameter

Change-Id: Ib3ad9d196af4a1b1662a4fca0dce40e963dc78f5
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9907
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
3 years agoEnable gradle build for Easy setup app for Android with scons 95/10095/3
Jihun Ha [Mon, 8 Aug 2016 09:25:09 +0000 (18:25 +0900)]
Enable gradle build for Easy setup app for Android with scons

Along with the patch 10093, this is for build easy setup
Android app with gradle build in scons.

Change-Id: Ib99cb63cfe8859766b8263e5669cb2cd9d9ddba9
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10095
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoEnabled IP CAGetNetworkInformation() API 71/9871/8
hyuna0213.jo [Fri, 29 Jul 2016 08:43:52 +0000 (17:43 +0900)]
Enabled IP CAGetNetworkInformation() API

currently CAGetNetworkInformation is not working on linux platform.
because stack doesn't set the device address.

Change-Id: Ia80c9e61d4c9180f3abbe7234e512fa475132da5
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9871
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoEnable gradle build of easy setup SDK for Android with scons 93/10093/4
Jihun Ha [Mon, 8 Aug 2016 09:10:34 +0000 (18:10 +0900)]
Enable gradle build of easy setup SDK for Android with scons

For building SDK of easy setup for Android, this patch utilizes gradle
executed in scons build.

Change-Id: I0de946b2e95f00051248418148deaa7fbd77e8c3
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10093
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoFix OTM Unittest 61/10061/9
Chul Lee [Fri, 5 Aug 2016 06:39:50 +0000 (15:39 +0900)]
Fix OTM Unittest

Fix OTM Unittest error

Patch #1-3: PT SVR DB modified to use x.org.iotivity.dpc
Patch #4-6: sample server's SVR DB modified to use x.org.iotivity.dpc.
           Also otmunittest.cpp updated to ignore the unknown server.
Patch #7: Updated to exit the unittest
          in case of two more devices are running on the subnet.

Change-Id: Ifd0c8c6043a6967f0e936da0086ee0fb7ed7e0b3
Signed-off-by: Jongmin Choi <jminl.choi@samsung.com>
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10061
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
3 years agofixed library loading issue at Android(API23) 21/10121/2
Heewon Park [Mon, 8 Aug 2016 07:31:37 +0000 (16:31 +0900)]
fixed library loading issue at Android(API23)

Change-Id: I055c3f3a2537346bc285ec8825350317156fe4e7
Signed-off-by: Heewon Park <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10121
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoMerge branch 'master' into cloud-interface 31/10131/1
Jee Hyeok Kim [Mon, 8 Aug 2016 08:54:21 +0000 (17:54 +0900)]
Merge branch 'master' into cloud-interface

Change-Id: I9baa52a9dcff36aec179677400cb5a8ee985d410
Signed-off-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoAdd specified response type into RM 09/10109/3
jihwan.seo [Mon, 8 Aug 2016 04:19:38 +0000 (13:19 +0900)]
Add specified response type into RM

As 'dataType' has added in CAResponseInfo_t,
RM also applied it in its code

refer change : https://gerrit.iotivity.org/gerrit/#/c/9255/.

Change-Id: I1484c9967e5f902b20967c5a94c1e04ca14bfada
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10109
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoMerge branch 'master' into extended-easysetup 17/10117/1
Heewon Park [Mon, 8 Aug 2016 06:08:10 +0000 (15:08 +0900)]
Merge branch 'master' into extended-easysetup

Change-Id: I300f1038ef9795499f328bf844939757702dcdeb
Signed-off-by: Heewon Park <h_w.park@samsung.com>
3 years agoFix a logic in linking child representation payload in batch interface 91/10091/2
Jihun Ha [Sat, 6 Aug 2016 01:32:46 +0000 (10:32 +0900)]
Fix a logic in linking child representation payload in batch interface

If provisioning resource receives a GET request with BATCH interface and
cloud resource is not created by user's decision, device configuration
resource's representation will not delivered even if device configuration
resource exists. This patch fixes this issue.

Change-Id: I90a43e58cf12dab0732857418fae7f4a7ef9dc1a
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10091
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoAdd specified response type 57/10057/3
Chul Lee [Fri, 5 Aug 2016 01:09:27 +0000 (10:09 +0900)]
Add specified response type
according to https://gerrit.iotivity.org/gerrit/#/c/9255/.

Change-Id: I4b5a23f8c42084de369dbb5af7a64b7a8d0679c8
Signed-off-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10057
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoAdd exception handling in MQ 77/9977/3
Minji Park [Wed, 3 Aug 2016 05:39:04 +0000 (14:39 +0900)]
Add exception handling in MQ

exception handling added to give proper error responses in MQ

Change-Id: Idb6ba4c90707b490b854788a5f06120a46652d6f
Signed-off-by: Minji Park <minjii.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9977
Reviewed-by: jung seungho <shonest.jung@samsung.com>
Reviewed-by: Yeonghun Nam <yeonghun.nam@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoRD unit test included 19/9719/7
yeonghun.nam [Wed, 3 Aug 2016 04:55:18 +0000 (13:55 +0900)]
RD unit test included

Change-Id: If8c2354aa3c32b628b6ec5dc5fbead1faca1e9aa
Signed-off-by: yeonghun.nam <yeonghun.nam@samsung.com>
Signed-off-by: Jung Seungho <shonest.jung@samsung.com>
Signed-off-by: yeonghun.nam <yeonghun.nam@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9719
Reviewed-by: Eunok Shin <eunok.shin@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoFix defects detected by SVACE system in easy setup 21/10021/5
Jihun Ha [Fri, 5 Aug 2016 07:40:09 +0000 (16:40 +0900)]
Fix defects detected by SVACE system in easy setup

SVACE which is one of static code analysis tools detects several defects
in easy setup. This patch fixes them.

Change-Id: Ie7e3eb692c58c586b6d0964cf6af24829c39eb11
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10021
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoUpdate common data class. 67/10067/2
Heewon Park [Fri, 5 Aug 2016 02:26:38 +0000 (11:26 +0900)]
Update common data class.

 - implement move & copy constructor.

Change-Id: I8b27beb016e463db30142b80fe6e06aa282e76f5
Signed-off-by: Heewon Park <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10067
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoadded Testcase for MQ Client API 39/9539/11
jihwan.seo [Thu, 21 Jul 2016 07:40:35 +0000 (16:40 +0900)]
added Testcase for MQ Client API

Change-Id: Iee8e98a922288f90a79e3fd006b797e5c745d107
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9539
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
3 years agoTo Enable MQ Cloud Client API for Android 97/9997/3
jihwan.seo [Wed, 3 Aug 2016 23:45:49 +0000 (08:45 +0900)]
To Enable MQ Cloud Client API for Android

Change-Id: Ic785552ec5737849e9c7a18035de7d81e74303c9
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9997
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
3 years agoReplace handling RM routeData 53/9853/6
Abhishek Sharma [Fri, 29 Jul 2016 02:29:24 +0000 (11:29 +0900)]
Replace handling RM routeData

Change-Id: Iae81e35edb4988edb9701014ef2813751ff03a41
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Signed-off-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9853
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
3 years agoMerge branch 'master' into extended-easysetup 49/10049/1
Jihun Ha [Thu, 4 Aug 2016 22:19:46 +0000 (07:19 +0900)]
Merge branch 'master' into extended-easysetup

Change-Id: Ica3dc6b70f2021c7f26d002ae9a0f50ea1fd82b2
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
3 years agoChange APIs for Subscribe device presence. 17/9917/3
Jaehong Jo [Tue, 2 Aug 2016 02:44:53 +0000 (11:44 +0900)]
Change APIs for Subscribe device presence.

Application developers have to pass devices id instead of the list of queries.
It will make them more convenient.

As-Is
const QueryParamsList& queryParams

To-Be
const std::vector<std::string>& di

Change-Id: I2c8231a58425227333c2a9c672c086409e2e51be
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9917
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Eunok Shin <eunok.shin@samsung.com>
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
3 years agotizen: set verbose mode for building 77/9477/3
Philippe Coval [Tue, 19 Jul 2016 16:23:17 +0000 (18:23 +0200)]
tizen: set verbose mode for building

Change-Id: If87868e716291445df754b7e567f87e49c444cce
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9473
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-by: Ashwini Kumar <k.ashwini@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit cc96473a6b3cb03748549fce47d851cefc3177ef)
Reviewed-on: https://gerrit.iotivity.org/gerrit/9477
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
3 years agoSeparated transmission logic for data on Both Mode. 55/9255/9
jihwan.seo [Fri, 8 Jul 2016 11:12:49 +0000 (20:12 +0900)]
Separated transmission logic for data on Both Mode.

Since BLE transport has gatt server and client.
there are two sender and receiver
such as notifyCharacteristic / writeCharacteristic in BLE transport.
(while other transport has only one sender and receiver.)

thur, message has to be sent by message type which whether
it is a request or response message.

Change-Id: I7f77d86c13115138082b72a6371ce5bd49f1f0c6
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9255
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
3 years agoInclude a new tinycbor file to iotivity build 85/9285/2
Otavio Pontes [Mon, 11 Jul 2016 13:23:33 +0000 (10:23 -0300)]
Include a new tinycbor file to iotivity build

In tinycbor a function was moved from cborparser.c to
cborparser_dup_string.c file. As we need this function in IoTivity we
need to include cborparser_dup_string.c in tinycbor SConscript.

Change-Id: Ic0b7598b525c61005bc07b3efcef0270f20bfc28
Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9285
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
Tested-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
Reviewed-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
3 years agoadded OCAccountManager class 35/9835/15
Jaewook Jung [Thu, 28 Jul 2016 01:37:26 +0000 (10:37 +0900)]
added OCAccountManager class

As there is need for API about Cloud server on client side, I added it
on OCPlatform.
(https://gerrit.iotivity.org/gerrit/#/c/9121/)
However there are plenty of APIs to be added more and just adding them
all on OCPlatform is not fine for usability.
So I make them a class like OCResource.

Below APIs will be added after this patchset.
: searchUser, createGroup, searchGroup, deleteGroup, addGroupMember,
  searchGroupMember, deleteGroupMember

Change-Id: I45e1f08b13d821346b364d38bf212b8040205a46
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9835
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
3 years agomodified network interface monitoring logic in tizen 99/9599/6
hyuna0213.jo [Thu, 21 Jul 2016 01:34:16 +0000 (10:34 +0900)]
modified network interface monitoring logic in tizen

To detect network interface changes in tizen,
CAFindInterfaceChange() function was modified.

Change-Id: I325c59205b090f9715d72f533faf27831e114792
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9527
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
(cherry picked from commit c5ec8565783a5be30d8089bafa2ede7466641837)
Reviewed-on: https://gerrit.iotivity.org/gerrit/9599
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
3 years agoAdded CRL issuer (move from x.509 to x509 folder and restructure) 99/9899/5
Andrii Shtompel [Mon, 1 Aug 2016 15:02:59 +0000 (18:02 +0300)]
Added CRL issuer (move from x.509 to x509 folder and restructure)

Change-Id: I8c2daa4c5d7a0a9bebaaed9765bc3622871b1dd0
Signed-off-by: Andrii Shtompel <a.shtompel@samsung.com>
Signed-off-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
Signed-off-by: Andrii Shtompel <a.shtompel@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9899
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
3 years agoremoved c++ warning for initialize 07/9807/3
jihwan.seo [Wed, 27 Jul 2016 23:30:00 +0000 (08:30 +0900)]
removed c++ warning for initialize

Change-Id: I9381c79f661f5e517badfb42682525985faa7cd1
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9807
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
3 years agoremoved potential invalid return value in BWT 57/9857/2
jihwan.seo [Fri, 29 Jul 2016 04:32:45 +0000 (13:32 +0900)]
removed potential invalid return value in BWT

Change-Id: I33b552f79d18322d60e188420e57c13976218531
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9857
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
3 years agoAdded API to obtain OCResourceObject from RCSRemoteResourceObject. 51/9551/5
Abhishek Pandey [Thu, 21 Jul 2016 10:31:23 +0000 (16:01 +0530)]
Added API to obtain OCResourceObject from RCSRemoteResourceObject.

Resource Encapsulation layer's RCSRemoteResourceObject class does not provide
all the operations (e.g. PUT, DELETE) that IoTivity base layer provides.

If application wants to invoke base layer API's directly, it needs to obtain
OCResoureObject. Obtaining this object is not possible without calling base
layer discovery. However, if application wants to use both RE layer and Base
layer there will be redundant discovery going on.

To avoid this problem, we added an API that returns OCResoureObject maintained
in RE layer. Using this object, application can call base layer APIs without
additional discovery.

Change-Id: I87757d70bd5df3463c3573831d7392e7b45c670a
Signed-off-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9551
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-by: Junghyun Oh <junghyun.oh@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
3 years agoAdded API for setting representation in RCS Client of Resource Encapsulation. 45/9545/6
Abhishek Pandey [Thu, 21 Jul 2016 08:57:52 +0000 (14:27 +0530)]
Added API for setting representation in RCS Client of Resource Encapsulation.

RCSRemoteResourceObject of RE layer provides an API to get remote resource
representation using RCSRepresentation Object, but it is missing the API to
set RCSRepresentation.

Setting of RCSRepresentation is required for collection resources.

In this patch I have added the set API which accepts RCSRepresentation as input
parameter so it can be used to send POST request on collection resources where
payload contains attributes to be set on multiple child resources.

Signed-off-by: Abhishek Pandey <abhi.siso@samsung.com>
Change-Id: Ic8957296b3cfe3e6abe1218ef060614d9cdc5618
Reviewed-on: https://gerrit.iotivity.org/gerrit/9545
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-by: Junghyun Oh <junghyun.oh@samsung.com>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
3 years agofixed bug. 41/9941/4
Heewon Park [Wed, 3 Aug 2016 09:20:34 +0000 (18:20 +0900)]
fixed bug.

 - when the security provisioning failed, devUUID which is using for callback is set nullptr.
   so ouccured some bug.

Change-Id: I9ddd7617c349ebbca5750125e5c94f382881b193
Signed-off-by: Heewon Park <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9941
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoFix a logic to copy userdata in ESReadUserdataCb 85/9985/2
Jihun Ha [Wed, 3 Aug 2016 08:22:37 +0000 (17:22 +0900)]
Fix a logic to copy userdata in ESReadUserdataCb

userdata parameter should be passed as double pointer type variable in
ESReadUserdataCb function so that user can assign a memory to the
variable and copy an user data to it inside the function.

Change-Id: Ic005d83c07256b83d8547069e908cbea11d54bec
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9985
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoUpdate garageclient status checking 99/9799/2
David Antler [Wed, 27 Jul 2016 16:22:16 +0000 (09:22 -0700)]
Update garageclient status checking

OC_STACK_OK is the eCode that should really be matched.  STATUS_SUCCESS
was only coincidentially set to the same value.

Also added whitespace after 'if' keyword.

Change-Id: I2f9ccb19d2da0911acbef0a420fecd8ed6199177
Signed-off-by: David Antler <david.a.antler@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9799
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
3 years agoIOT-1091: Add auto_build.py 87/8287/25
Ajay Saini [Mon, 23 May 2016 21:18:42 +0000 (14:18 -0700)]
IOT-1091: Add auto_build.py

This will replace auto_build.sh as a cross platform solution.

Change-Id: I36afaba8e8935da8322322e2e8c70efde6e22e52
Signed-off-by: Ajay Saini <ajay.saini@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8287
Reviewed-by: David Antler <david.a.antler@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
3 years agoImprove run.bat 99/9399/3
David Antler [Thu, 14 Jul 2016 18:55:03 +0000 (11:55 -0700)]
Improve run.bat

* For SECURED=1, the samples are sensitive to the directory from which
  they are executed.
* Combined the build arguments into a single spot.
* Add new binary runners.
   * provisioningclient (provclient) and
   * sampleserver_justworks (justworks)

Change-Id: Id744569f282a5adb892958be9dcdc46e3b153773
Signed-off-by: David Antler <david.a.antler@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9399
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
3 years agoMerge "Merge branch 'master' into extended-easysetup" into extended-easysetup
Madan Lanka [Wed, 3 Aug 2016 13:53:44 +0000 (13:53 +0000)]
Merge "Merge branch 'master' into extended-easysetup" into extended-easysetup

3 years agoMove macro from consumer common to NSConstant.h 83/9883/5
jaesick.shin [Mon, 1 Aug 2016 06:03:56 +0000 (15:03 +0900)]
Move macro from consumer common to NSConstant.h

Move the location of "Macro function" from
NCConsumerCommon.h to NSConstants.h.
Because, provider will use the macros also.

Change-Id: I00b6fcba65ae491eb2a5457ddcf80f6c42df6cde
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9883
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agocsdk: fix minimal linux tests 15/9515/7
Philippe Coval [Wed, 20 Jul 2016 15:12:14 +0000 (17:12 +0200)]
csdk: fix minimal linux tests

Update to current API, and make them build by default.

Those samples files are good candidates
 to illustrate C API in plain C and not C++,
 specially for systems without recent g++ (ie: Tizen:2.2-)

Change-Id: I22e18903037a249e1dce4d29c2580ffe865caf50
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9515
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Habib Virji <habib.virji@samsung.com>
Reviewed-by: Dave Thaler <dthaler@microsoft.com>
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
3 years agodivide code about related cloud service. 21/9921/2
jaesick.shin [Tue, 2 Aug 2016 04:24:30 +0000 (13:24 +0900)]
divide code about related cloud service.

while scons builds, cloud service code is
not required without WITH_CLOUD option in scons options.
It was modified as follows, #ifdef WITH_CLOUD #endif in code.
we should modify cpp_wrapper layer.
so, this commit makes the related build script of cpp_wrapper being commented out.

Change-Id: I9172b32e9242cc8d9ed038f024437dbd3b28da43
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9921
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoDelete unused Mediator sample application for csdk 59/9959/2
Jihun Ha [Wed, 3 Aug 2016 01:41:51 +0000 (10:41 +0900)]
Delete unused Mediator sample application for csdk

Mediator does not support csdk anymore, so its sample application is removed.

Change-Id: I5102cd9de85daa59b40d9a6fc2d5e28167346e55
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9959
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoAdd unittest code for Enrollee 23/9923/4
Jihun Ha [Tue, 2 Aug 2016 13:06:46 +0000 (22:06 +0900)]
Add unittest code for Enrollee

Using Hippomock, unittest codes for enrollee have been implemented.

Change-Id: I1c64a97aae20e0b27c605e7a78bd6a0ada14c6b9
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9923
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoMerge branch 'master' into extended-easysetup 73/9973/1
Jihun Ha [Wed, 3 Aug 2016 05:34:54 +0000 (14:34 +0900)]
Merge branch 'master' into extended-easysetup

Change-Id: Ief0ccc439fc50853b38606fb2c172d2db86ebf19
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
3 years agoMQ unit test included 27/9727/5
yeonghun.nam [Tue, 26 Jul 2016 12:05:43 +0000 (21:05 +0900)]
MQ unit test included

Change-Id: I128d1d87416292db0bd51608ee84b7af6cbe5ce5
Signed-off-by: yeonghun.nam <yeonghun.nam@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9727
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Minji Park <minjii.park@samsung.com>
Reviewed-by: jung seungho <shonest.jung@samsung.com>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agofixed segmentation fault issue when parsing query with rt including period 19/9919/5
Jaewook Jung [Tue, 2 Aug 2016 04:23:10 +0000 (13:23 +0900)]
fixed segmentation fault issue when parsing query with rt including period

fixed segmentation fault issue when parsing query with rt including period

Change-Id: Ibff0067acc8ac4df0b608c691dadedd50d320d3b
Signed-off-by: Jaewook Jung <jw0213.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9919
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: George Nash <george.nash@intel.com>
Reviewed-by: Larry Sachs <larry.j.sachs@intel.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
3 years agoFix memory corruption when reading integers from cbor 25/8925/9
Hauke Mehrtens [Wed, 22 Jun 2016 09:41:43 +0000 (11:41 +0200)]
Fix memory corruption when reading integers from cbor

When the cbor_value_get_*() function is called with a pointer to some int, it
should have the correct size. When we cast it to something else it is treated
as a pointer to an uint64_t in the function for example and them 64 bits gets
written to memory even with the real type is only 32 bit long. When the real
type is only 32 bit long some other memory gets overwritten. On Big endian
systems the least significant bits are cut of so in most cases 0 is read.

With this patch a value cast is used and the value is converted to the other size.

This is the same as in commit 0d64c7c95a5c11a9fb5201e729fd8c75da210c80
"security: fix reading of permission attribute from configuration"

Change-Id: If5965491241e25ebf60a22dc45d37d74a33cb02f
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8925
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
3 years agoDelete mediator c-sdk. 15/9915/2
Heewon Park [Tue, 2 Aug 2016 02:38:05 +0000 (11:38 +0900)]
Delete mediator c-sdk.

 - current easy-setup don't support C-layer SDK.

Change-Id: I56dd13b0efd5267614e59540c6f2ea2f05795661
Signed-off-by: Heewon Park <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9915
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agodo code optimization of EntityHandler. 25/9825/6
jaesick.shin [Thu, 28 Jul 2016 08:29:05 +0000 (17:29 +0900)]
do code optimization of EntityHandler.

our service has three entityHandler.
almost, which of operation same is response.

second patch included one more optimization.
our service not using the response value in EntityHandler.
so, i remove related response value.

third patch included remove set ehResultValue.
because of, our service is ehResult value always return OC_EH_OK.

fifth patch included remove comments and not required value.
remove unnecessary comments and not required value in NSProviderListener.c
payload value is not used.

Change-Id: I719a65e70f3ad51da0ed0488be48b973e8a61ab7
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9825
Reviewed-by: Abitha Shankar <abitha.s@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoRemove unused function and Related MessageList. 81/9881/2
jaesick.shin [Mon, 1 Aug 2016 04:20:54 +0000 (13:20 +0900)]
Remove unused function and Related MessageList.

Remove NSStorageDelete Function.
Remove Related MessageList in NSProviderMemoryCache.
MessagList is not required at current scenario.

Change-Id: I751bd66a5b6b255c3fb1317ff5350cd008ae7496
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9881
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoAdd getStatus API in RemoteEnrollee class for Android platform 87/9887/4
Jihun Ha [Mon, 1 Aug 2016 11:25:10 +0000 (20:25 +0900)]
Add getStatus API in RemoteEnrollee class for Android platform

Along with a getStatus API for Linux platform, I've implemented the API
for Android platform.
Additionally, DeviceConfig and WiFiConfig classes are removed because they
are not used anymore.

Conflicts:

service/easy-setup/mediator/richsdk/android/EasySetupCore/src/main/java/org/iotivity/service/easysetup/mediator/RemoteEnrollee.java

Change-Id: If49f50d1ecd03fbc29aba5ba0a066bfd3a298e91
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9887
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoMerge duplicated variables used by both of Mediator and Enrollee 91/9891/2
Jihun Ha [Mon, 1 Aug 2016 09:19:16 +0000 (18:19 +0900)]
Merge duplicated variables used by both of Mediator and Enrollee

Duplicated string definition and enum variable are merged into escommon.h.
And Enrollee and Mediator has own common header file.

Change-Id: I5d49d46e267e30260dc1de7520d034e586df705e
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9891
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoImplement cloud acl-provisioning feature & update discovery logic. 43/9843/4
Jihun Ha [Mon, 1 Aug 2016 06:47:59 +0000 (15:47 +0900)]
Implement cloud acl-provisioning feature & update discovery logic.

Change-Id: Id26b1a68106d8f8b8a0f3880fd02699f66ead81a
Signed-off-by: Heewon Park <h_w.park@samsung.com>
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9843
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoRemote unused scons options for easy setup 75/9875/3
Jihun Ha [Mon, 1 Aug 2016 01:54:48 +0000 (10:54 +0900)]
Remote unused scons options for easy setup

ES_ROLE, ES_TARGET_ENROLLEE, and ES_SOFTAP_MODE options are removed
because they are not used anymore.

Change-Id: I58811fc5ea2ac597d3a1056c95304fcbec4898d0
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9875
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoAdd an API for handling user-specific properties in Enrollee side 37/9837/6
Jihun Ha [Sun, 31 Jul 2016 07:41:10 +0000 (16:41 +0900)]
Add an API for handling user-specific properties in Enrollee side

User can register two function pointers to easy setup stack for handling
user-specific properties for incomming and outgoing payload if needed.
This API helps the easy setup code not changed even user wants to deliver
more properties in addition to easy setup properties in OCF spec.

Change-Id: I4e543d0abfbd6820db055d763421997cf39f5cab
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9837
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
3 years agoAdded CRL issuer 65/9865/3
Andrii Shtompel [Fri, 29 Jul 2016 15:12:34 +0000 (18:12 +0300)]
Added CRL issuer

1. Test code present (to test Generate Crl).
2. Generated Crl can be verified using http://lapo.it/asn1js/
3. TODO: need to implement storage, possible using Java Key Store
4. GetCrl just returns binary data instead of CoAP response

Change-Id: Iff0d7f8cb0690c2dffe0749ef0703d45dd5db634
Signed-off-by: Andrii Shtompel <a.shtompel@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9865
Reviewed-by: Andrii Androsov <a.androsov@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoAdd deviceid, uid checking logic to session and refresh 19/9819/2
Jee Hyeok Kim [Thu, 28 Jul 2016 05:08:19 +0000 (14:08 +0900)]
Add deviceid, uid checking logic to session and refresh

1. when sign-in to cloud, uid is required.
2. when do refresh token, uid is required

Change-Id: Ic69afa2165accc1621e94a418ec99554d93c7ebb
Signed-off-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9819
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jung seungho <shonest.jung@samsung.com>
3 years agoAdded certificate builder. 61/9861/3
i.pazderskyy [Fri, 29 Jul 2016 11:45:18 +0000 (14:45 +0300)]
Added certificate builder.

Change-Id: I5c6930c4ab4f4aec2379108ed2f7efbe2a817a48
Signed-off-by: i.pazderskyy <i.pazderskyy@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9861
Reviewed-by: Andrii Androsov <a.androsov@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jee Hyeok Kim <jihyeok13.kim@samsung.com>
3 years agoMerge branch 'master' into notification-service 73/9873/1
Hun-je Yeon [Mon, 1 Aug 2016 01:02:32 +0000 (10:02 +0900)]
Merge branch 'master' into notification-service

Merged changes
1. https://gerrit.iotivity.org/gerrit/#/c/9801/
2. https://gerrit.iotivity.org/gerrit/#/c/9289/
3. https://gerrit.iotivity.org/gerrit/#/c/9839/
4. https://gerrit.iotivity.org/gerrit/#/c/9609/
5. https://gerrit.iotivity.org/gerrit/#/c/9601/

Change-Id: Ib56507b1830041fec457b1f8c718584166093c85
Signed-off-by: Hun-je Yeon <hunje.yeon@samsung.com>
3 years agoMerge branch 'master' into extended-easysetup 69/9869/1
Jihun Ha [Sun, 31 Jul 2016 06:22:38 +0000 (15:22 +0900)]
Merge branch 'master' into extended-easysetup

Conflicts:
android/android_api/base/jni/JniSecureUtils.cpp

Change-Id: I250bd8500c33626e81e5395f8c14f3935cd425f9
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
3 years agoRAML spec gap updation for ACL (Android) 01/9601/5
Sandeep Sharma [Fri, 22 Jul 2016 07:01:18 +0000 (12:31 +0530)]
RAML spec gap updation for ACL (Android)

Update Java/JNI and provisioningClient App following
 https://gerrit.iotivity.org/gerrit/#/c/8241 change.

patch #2: Memory Cleanup code and License inclusion.

Change-Id: Ia2509eef21ba4e54a7ee79378cb143a0e8616772
Signed-off-by: Sandeep Sharma <sandeep.s9@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9601
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
3 years agoAdd sample provisioning servers in package 09/9609/3
Ashwini Kumar [Tue, 19 Jul 2016 08:44:07 +0000 (14:14 +0530)]
Add sample provisioning servers in package

Added sample provisioning servers into the test package built
Corresponding .dat files are also added to same location as binary file
,i.e. /usr/bin/provision-sample
Server opens the dat file from the current location of the binary file.
This needs to be updated for tizen, to be in a place out of bin, where Read-Write
is possible.

Change-Id: I0d13386976d2d4910934064d6092e1b360dcf919
Credit-to: Ashwini Kumar <k.ashwini@samsung.com>
Signed-off-by: Ashwini Kumar <k.ashwini@samsung.com>
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
Signed-off-by: Ashwini Kumar <k.ashwini@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9311
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Mushfiqul Islam <i.mushfiq@samsung.com>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
Signed-off-by: Ashwini Kumar <k.ashwini@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9609
Reviewed-by: Ziran Sun <ziran.sun@samsung.com>
3 years agoSync master with 1.1-rel 39/9839/2
Randeep Singh [Thu, 28 Jul 2016 14:03:49 +0000 (19:33 +0530)]
Sync master with 1.1-rel

Merged changes of:

https://gerrit.iotivity.org/gerrit/#/c/9305/
https://gerrit.iotivity.org/gerrit/#/c/9317/
https://gerrit.iotivity.org/gerrit/#/c/9325/
https://gerrit.iotivity.org/gerrit/#/c/9327/
https://gerrit.iotivity.org/gerrit/#/c/9307/
https://gerrit.iotivity.org/gerrit/#/c/9385/
https://gerrit.iotivity.org/gerrit/#/c/9249/
https://gerrit.iotivity.org/gerrit/#/c/9417/
https://gerrit.iotivity.org/gerrit/#/c/9553/
https://gerrit.iotivity.org/gerrit/#/c/9457/
https://gerrit.iotivity.org/gerrit/#/c/9425/

Change-Id: I9b156226e7544ffb1bdc142c6c8fed87ff9b53b3
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9839
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: dongik Lee <dongik.lee@samsung.com>
Reviewed-by: Jongmin Choi <jminl.choi@samsung.com>
3 years agoAdded memory deallocation of Consumer main thread handle. 31/9831/2
KIM JungYong [Thu, 28 Jul 2016 09:49:44 +0000 (18:49 +0900)]
Added memory deallocation of Consumer main thread handle.

When consumer service stopped,
consumer thread handle should de-allocate at memory
because it was allocated the way of dynamic-allocation.

Thread handle is de-allocated on NSDestroyThreadHandle().

Change-Id: I01d773892c6f6d79b833036df8f078a4f6df0ce7
Signed-off-by: KIM JungYong <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9831
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
3 years agoAdd Unittest of startProvider in Provider side. 21/9821/4
jaesick.shin [Thu, 28 Jul 2016 07:31:15 +0000 (16:31 +0900)]
Add Unittest of startProvider in Provider side.

our service is two case for startProvider.
Add startProvider with NSPolicy False Case.

Change-Id: I3aa763aaf264240ba4a9122fe3071a30edb40bcb
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9821
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
3 years agomodify the Unittests in ProviderSide. 85/9785/2
jaesick.shin [Wed, 27 Jul 2016 10:56:41 +0000 (19:56 +0900)]
modify the Unittests in ProviderSide.

Our notification service many changed about struct, name, api.
Modify the Unittests.

Change-Id: I77c587d1cb7f1e0644c79074b3db11f47c11e076
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9785
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
3 years agoHandle OC_STACK_RESOURCE_CHANGED as success in Jni Layer 01/9801/3
ljsachs [Wed, 27 Jul 2016 18:50:31 +0000 (11:50 -0700)]
Handle OC_STACK_RESOURCE_CHANGED as success in Jni Layer

Change-Id: Ifbf030ed08424b901f47e58aafac02aff3e60031
Signed-off-by: ljsachs <larry.j.sachs@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9801
Reviewed-by: Tim Kourt <tim.a.kourt@intel.com>
Reviewed-by: Rick Bell <richard.s.bell@intel.com>
Reviewed-by: George Nash <george.nash@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
3 years agoUse the IANA assigned IPv6 multicast addresses for "All OCF Nodes". 89/9289/3
Stephane Lejeune [Mon, 11 Jul 2016 15:00:12 +0000 (17:00 +0200)]
Use the IANA assigned IPv6 multicast addresses for "All OCF Nodes".

In order to avoid processing incompatible messages with CoAP application
syntax in constrained devices, OCF has registered its own IPv6 multicast
address. This patch changes the IPv6 multicast address used for
discovery and group messages from “All CoAP Nodes” to “All OCF Nodes”.
See
http://www.iana.org/assignments/ipv6-multicast-addresses/ipv6-multicast-addresses.xhtml

Change-Id: I6ff4069bde6bdcfc40bd5aa216108f2de6a18ed5
Signed-off-by: Stephane Lejeune <stlejeun@cisco.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9289
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
3 years agoMerge branch 'master' into notification-service 33/9833/1
Hun-je Yeon [Thu, 28 Jul 2016 09:44:15 +0000 (18:44 +0900)]
Merge branch 'master' into notification-service

Change-Id: I7888de55cc1ba0e1dc5e4a9350c67b6a2126beb0
Signed-off-by: Hun-je Yeon <hunje.yeon@samsung.com>
3 years agodelete unused code of EntityHandler in Provider Side. 11/9811/3
jaesick.shin [Thu, 28 Jul 2016 03:37:53 +0000 (12:37 +0900)]
delete unused code of EntityHandler in Provider Side.

Our service is not using the headeroption.
second patch inlcuded delete white space.

Change-Id: Iffa8cafbc30eac8a424ff935c523d7438e441d72
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9811
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
3 years agoNo place to call the StopPresence in Provider side. 13/9813/2
jaesick.shin [Thu, 28 Jul 2016 04:49:33 +0000 (13:49 +0900)]
No place to call the StopPresence in Provider side.

Add a logic to call StopPresence function when StopProvider function is called.

Change-Id: I37ef4549d3f4fb981510b1c479bc1b1af8921ced
Signed-off-by: jaesick.shin <jaesick.shin@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9813
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
3 years agoAdjust a change of updated data class for C++ to Android 77/9777/2
Jihun Ha [Wed, 27 Jul 2016 08:13:19 +0000 (17:13 +0900)]
Adjust a change of updated data class for C++ to Android

For simplicity, OcRepresentation object is passed from Android to C++ and
C++ to Android to deliver data to be delivered and received data.
For this change, all related class in JNI and Android are changed.

Reference patch: https://gerrit.iotivity.org/gerrit/#/c/9733/

Change-Id: Iee5ae90e181b1f5a953952e18bae585729c34a59
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9777
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
3 years agoConvert a data structure to class object which can be extensible for carrying more... 33/9733/4
Jihun Ha [Wed, 27 Jul 2016 07:56:35 +0000 (16:56 +0900)]
Convert a data structure to class object which can be extensible for carrying more data

The current design for storing data to be delivered to enrollee and to
be arrived from Enrollee has a limitation of extensibility in case
where a vendor specific property is added to one of easy setup resources.
To overcome this situation which would happen, we convert all data structures
to class objects which can be inheritible if needed.

For example, if you add a vender specific property in DevConf resource and
want to be retrieved by getConfiguration() API, you just create NewEnrolleeConf
class inherited from EnrolleeConf class like below:
class NewEnrolleeConf : public EnrolleeConf {
   int getNewIntValue() {
       return m_DevConfRep.getValue<type>("propertykey");
} }

Change-Id: I2fa8cf53e8339c211b6b1b722bada699f5a70940
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/9733
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jongho Park <jh8397.park@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>