platform/upstream/iotivity.git
8 years agoAdding scope to RCSDiscoveryTask
ChaJiwon [Fri, 18 Sep 2015 08:24:41 +0000 (17:24 +0900)]
Adding scope to RCSDiscoveryTask

- adding scope 'RCSDiscoveryManager' to RCSDiscoveryTask in resource-encapsulation sample client
- modify DiscoveryTask name

Change-Id: Id2140350a54e2f2089322a57a9307572fb8746cb
Signed-off-by: ChaJiwon <jw_wonny.cha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2687
Reviewed-by: kwon doil <doil.kwon@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
Tested-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoModify empty parameter handling in RCSDiscoveryManager
doil.kwon [Fri, 18 Sep 2015 04:51:15 +0000 (13:51 +0900)]
Modify empty parameter handling in RCSDiscoveryManager
and tranfer "RCSDiscoveryTask"'s location into "RCSDiscoveryMananger".

- if input value(relativeUri) is empty, will be discovered after be changed into "OC_RSRVD_WELL_KNOWN_URI".
- delete white space.
- According to move "RCSDiscoveryTask" into "RCSDiscoveryManager", changed name from "RCSDiscoveryTask" to "DiscoverTask".

Change-Id: I544d001e5b3a2f0fda75452f86430aceee2b46e5
Signed-off-by: doil.kwon <doil.kwon@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2663
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
Tested-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoExecute bundle activation in separate thread
Markus Jung [Fri, 18 Sep 2015 05:51:23 +0000 (14:51 +0900)]
Execute bundle activation in separate thread

This change executes the bundle activation in a separate thread. The calling thread waits
a defined time for the bundle activation to be completed before continuing the program flow.

Change-Id: I07dbb2e7b87658f5a0b1de827b458c2d55c5d16c
Signed-off-by: Markus Jung <markus.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2669
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agomodify resouce-encapsulation sample server and client
ChaJiwon [Fri, 18 Sep 2015 05:46:30 +0000 (14:46 +0900)]
modify resouce-encapsulation sample server and client

sampleResourceClient
- add the function that discover resouce
- add the function that cancel discover resource

sampleResourceServer
- select presence mode
- select resource type

Change-Id: I9e5867569be687fc25a9d1eca7a2cdff585b2963
Signed-off-by: ChaJiwon <jw_wonny.cha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2631
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agomodify doxygen comment
Heewon Park [Fri, 18 Sep 2015 05:43:55 +0000 (14:43 +0900)]
modify doxygen comment

-RCSResourceObject.h

Change-Id: I958572760b25d100ed2e8f4aaf6252a1625cad0b
Signed-off-by: Heewon Park <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2667
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoUpdated Java SDK of RE layer
Jay Sharma [Thu, 17 Sep 2015 12:15:33 +0000 (17:45 +0530)]
Updated Java SDK of RE layer

- Updated the RCSResourceAttributes class to support Nested Attributes.
- Updated the JNI Layer.

Change-Id: Ief1fe17a2d497a1167d4b6cc3bc727b0dfe62096
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2639
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Rami Jung <rami.jung@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoPrefix for bundle activation function
Markus Jung [Wed, 16 Sep 2015 10:54:51 +0000 (19:54 +0900)]
Prefix for bundle activation function

This patch introduces a prefix for the activator functions of C++ bundles.
Multiple bundles can now be linked into one application.

Change-Id: I7f345bf1a81eac9616adbf9b975a7f8565c8c172
Signed-off-by: Markus Jung <markus.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2581
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agomodify bundle resource and request handler to update multiple attributes
Minji Park [Wed, 16 Sep 2015 11:32:10 +0000 (20:32 +0900)]
modify bundle resource and request handler to update multiple attributes

- modify set, get request handler in the container
- add setAttributes in bundle resource to update multiple attributes
- modify protocol bridge, softsensor resource template and samples

Change-Id: I361c0b2a8d01f3a783e2a22bb2469aee0445a9e0
Signed-off-by: Minji Park <minjii.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2585
Reviewed-by: Markus Jung <markus.jung@samsung.com>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoAdd unitTest for RCSDiscoveryManager.
doil.kwon [Thu, 17 Sep 2015 06:11:05 +0000 (15:11 +0900)]
Add unitTest for RCSDiscoveryManager.

Change the class name "DiscoveryTask" to "RCSDiscoveryTask".

Add handling about move operator and copy operator and move constructor and copy constructor for "RCSDiscoveryTask" class.

Modify Sconscript to build RCSDiscoveryManager UnitTest.

Change-Id: If409727bab435f38dd1ef4846880bf1a0bab827a
Signed-off-by: doil.kwon <doil.kwon@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2623
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoRCSDiscovermanager's discovery feature extension for active discovery
doil.kwon [Fri, 11 Sep 2015 06:14:51 +0000 (15:14 +0900)]
RCSDiscovermanager's discovery feature extension for active discovery

- Previous Versions of RCSDiscoveryManager can discover only things that is available during discovery.
  Now RCSDisvoveryManger's Function is extended for active discovery. It can discover things that is incoming after discovering, andcan discover resource what is not supported presence function.

- RCSDiscoveryManagerImpl codes(.h file and .cpp file) are included.so also added its path in Sconscript.

- RCSDiscoveryManagerImpl Constructor is not setting about default.

- when DiscoveryTask's deconstructor is called, called cancel() API.

- delete white spaces and tabs to spaces.

- modify polling interval time 5sec -> 1min

- modify limited line.

Change-Id: I324d5be818655e258cdd2118ace7cabffae97d36
Signed-off-by: doil.kwon <doil.kwon@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2459
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years ago[TIZEN] Enriched RE Sample Application with nested resource attribute.
arya.k [Wed, 16 Sep 2015 11:37:01 +0000 (17:07 +0530)]
[TIZEN] Enriched RE Sample Application with nested resource attribute.

Change-Id: I2b32519b1f107421c834e4bd8ac22467cd3b1c7f
Signed-off-by: arya.k <arya.kumar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2587
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoModify ResourceContainer UnitTest code for including Resource RCS Client module
Younghyun Joo [Wed, 16 Sep 2015 11:20:36 +0000 (20:20 +0900)]
Modify ResourceContainer UnitTest code for including Resource RCS Client module

    - add UnitTest case for DiscoverResourceUnit
    - add UnitTest case for RemoteResourceUnit

Signed-off-by: Younghyun Joo <yh_.joo@samsung.com>
Change-Id: I789db92d51ece367ff42babcf599b4d4c1093874
Reviewed-on: https://gerrit.iotivity.org/gerrit/2583
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoRE - Enriched Linux sample application with nested resource attributes.
arya.k [Wed, 16 Sep 2015 11:07:46 +0000 (16:37 +0530)]
RE - Enriched Linux sample application with nested resource attributes.

Change-Id: Ieea592f3d490f56de6ab058078dbc1a7f1910a12
Signed-off-by: arya.k <arya.kumar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2575
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoNotification-Manager changes for Android platform
Jay Sharma [Tue, 15 Sep 2015 12:35:05 +0000 (18:05 +0530)]
Notification-Manager changes for Android platform

- Updated Resource Hosting (JavaSDK)
- Updated Sample Applications

Change-Id: I3a9edff3a6152d6558c91b3f213ccde0b53a0917
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2561
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoadd a test case of nested vector attributes.
Rami Jung [Tue, 15 Sep 2015 10:49:56 +0000 (19:49 +0900)]
add a test case of nested vector attributes.
Given that OCRepresentation supports 3 depths of attributes, RE has extended its functionality to 3 depths of attributes like OCRepresentation

It means developers are able to make the following structure
{
  "key" : [
             [ [0, 1], [4, 5] ],
             [ [4, 5], [7, 8] ]
          ]
}

This test case checks whether it works correct or not

Change-Id: Id9380faf61ecfb3c43465e2b040a83f1225daa0f
Signed-off-by: Rami Jung <rami.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2555
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoUpdated REServer Andriod application.
Jay Sharma [Tue, 15 Sep 2015 11:39:59 +0000 (17:09 +0530)]
Updated REServer Andriod application.

- Updated REServer application for the new bundles : BMI and DI bundles.
- Updated the .xml file for the bundles.

Change-Id: I924f1a17bd2c3f5368e3275b5a019cc2759da7a2
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2519
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoMerge "Merge branch 'master' into resource-encapsulation" into resource-encapsulation
Madan Lanka [Wed, 16 Sep 2015 00:26:19 +0000 (00:26 +0000)]
Merge "Merge branch 'master' into resource-encapsulation" into resource-encapsulation

8 years ago[TIZEN] Notification Manager Sample Application update for RE libraries.
arya.k [Tue, 15 Sep 2015 10:25:50 +0000 (15:55 +0530)]
[TIZEN] Notification Manager Sample Application update for RE libraries.

Change-Id: I68ad801d64f1736b244b12a8d8a4f8a620ae64f5
Signed-off-by: arya.k <arya.kumar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2553
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoMerge branch 'master' into resource-encapsulation
hunje.yeon [Tue, 15 Sep 2015 11:13:28 +0000 (20:13 +0900)]
Merge branch 'master' into resource-encapsulation

Update the recent changes of 15th Sep. from 'master' branch into 'resource-encapsulation'

Change-Id: I35359c7f596ce5c9d8db9a02f04835863b5a0635
Signed-off-by: hunje.yeon <hunje.yeon@samsung.com>
8 years ago[TIZEN] Added BMI bundle features in RE Sample Server Application.
arya.k [Tue, 15 Sep 2015 05:59:40 +0000 (11:29 +0530)]
[TIZEN] Added BMI bundle features in RE Sample Server Application.

Change-Id: I6d0ac5b6535d4fb41c800fbe95a3cf27929fe4a6
Signed-off-by: arya.k <arya.kumar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2545
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoAdd logic in container to get notification when bundle resource updated
Minji Park [Tue, 15 Sep 2015 06:15:22 +0000 (15:15 +0900)]
Add logic in container to get notification when bundle resource updated

- add logic to get notification when bundle resource attributes are updated, and enable to notify observers using server builder

Change-Id: I0e2b5c3d72d383b919ab7a7f0a6bbc6403f3ac9e
Signed-off-by: Minji Park <minjii.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2547
Reviewed-by: Markus Jung <markus.jung@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years ago[TIZEN] Added Resource Container Discovery in Sample client application.
arya.k [Mon, 14 Sep 2015 05:37:59 +0000 (11:07 +0530)]
[TIZEN] Added Resource Container Discovery in Sample client application.

Resolved build errors for Sample Server application.

Change-Id: I96065e2b9eb8a85cb5936fb55e769bb33a25e252
Signed-off-by: arya.k <arya.kumar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2474
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoModify logs in resource container using OC_LOG
Minji Park [Mon, 14 Sep 2015 12:45:25 +0000 (21:45 +0900)]
Modify logs in resource container using OC_LOG

- add error logs in container
- modify existing logs using OC_LOG
- define common strings for bundle configuration in seperate header

Change-Id: Ib702cab1c62fe0d9038f86d99ca8f278eb4a19ed
Signed-off-by: Minji Park <minjii.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2513
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Markus Jung <markus.jung@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agomodify the OCTransportAdapter structure in RI
hyuna0213.jo [Mon, 14 Sep 2015 08:20:25 +0000 (17:20 +0900)]
modify the OCTransportAdapter structure in RI

currently if RA and TCP are together used, there is a compile issue.
so I fixed the issue to build iotivity.

Change-Id: I844deb28afc1556d7faa9c33ac4062550d9e223c
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2507
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
8 years agoapply smack rule and make resource samples package
Minchul Lee [Thu, 10 Sep 2015 07:30:42 +0000 (16:30 +0900)]
apply smack rule and make resource samples package

Change-Id: Ib98fa2130700ce8dc33c9216c0c9a82147ff8dde
Signed-off-by: Minchul Lee <slotus.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2442
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
8 years ago[Resource-Encapsulation] Updated Java SDK and RE Android Samples
Jay Sharma [Mon, 14 Sep 2015 09:53:44 +0000 (15:23 +0530)]
[Resource-Encapsulation] Updated Java SDK and RE Android Samples

- Renamed Applications to REServer and REClient
- Fixed sample app issues.
- FIxed issues in JNI.
- Added separate Listener for set and get attributes.
- Updated Doxygen comments

Change-Id: I86f186b1153f02b15064177ac4b41ffcf6d6ddfe
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2485
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years ago[Resource-Encapsulation] Updated Java SDK and RE Android Samples
Jay Sharma [Mon, 14 Sep 2015 06:10:20 +0000 (11:40 +0530)]
[Resource-Encapsulation] Updated Java SDK and RE Android Samples

- Renamed Applications to REServer and REClient
- Fixed sample app issues.
- FIxed issues in JNI.
- Added separate Listener for set and get attributes.
- Updated Doxygen comments

Change-Id: I86f186b1153f02b15064177ac4b41ffcf6d6ddfe
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2484
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoEnable error responses to be sent back to the client.
Mandeep Shetty [Thu, 10 Sep 2015 21:35:05 +0000 (14:35 -0700)]
Enable error responses to be sent back to the client.

The resource uri was moved from the endpoint to the uri response info
struct in IPv6.
The function sendDirectStackResponses responsible for sending out ACKs,
RESETs and error codes back to the client was not updated to take in the
resource uri.
As a result, the CA layer ate this error with a uri is NULL log and the
client did not receive any response.

Added resource Uri to the responseInfo struct to fix the problem.

Change-Id: Ic3b964c646244698c1621860922fc06b40842bc3
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2454
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoUpdated Android Sample App for block-wise transfer
jihwan.seo [Wed, 9 Sep 2015 13:04:19 +0000 (22:04 +0900)]
Updated Android Sample App for block-wise transfer

- To add big data from sample app for block-wise transfer.
- this change is came from Change 1371.
  https://gerrit.iotivity.org/gerrit/#/c/1373/

Change-Id: I983f106a5d0b750457da46865d81b0efb5ebd3fc
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2423
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
8 years agoEnabled CoAP over TCP in RI Layer.
hyuna0213.jo [Tue, 8 Sep 2015 12:33:30 +0000 (21:33 +0900)]
Enabled CoAP over TCP in RI Layer.

- added new transport adapter in RI
- linux platform can be supported
- https://wiki.iotivity.org/proposal_for_cloud_interface_in_iotivity

Change-Id: Iaf245c3bbf30e76708545d136435a371b86fda7e
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2405
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
8 years agoBundle-isolation: Performing set and get request in separate threads
Markus Jung [Fri, 11 Sep 2015 08:51:27 +0000 (17:51 +0900)]
Bundle-isolation: Performing set and get request in separate threads

The resource container will span of a separate thread for handling set and get
requests to bundle resources. A timed join based on boost thread library
will return the control flow to the request execution thread if the request
is blocked or runs into a time out.

Change-Id: If39ef87ba05449b59ad79136b0c63fa8e59f16e6
Signed-off-by: Markus Jung <markus.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2463
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoAdd resource container bundle sample
Minji Park [Fri, 11 Sep 2015 08:19:36 +0000 (17:19 +0900)]
Add resource container bundle sample

- Add BMI Sample Bundle
- Modify DiscomfortIndex sensor bundle and rename files and directory
- Add sample input sensors for BMI and DiscomfortIndex sensor bundle
- remove build warmings
- Enabled build for the Android Platform

Change-Id: I2f14a0acaf05fcf09f945f2046facb122a376f99
Signed-off-by: Minji Park <minjii.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2461
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoMerge branch 'master' into resource-encapsulation
hunje.yeon [Fri, 11 Sep 2015 11:53:24 +0000 (20:53 +0900)]
Merge branch 'master' into resource-encapsulation

Conflicts:
service/resource-encapsulation/sdk/java/src/org/iotivity/ResourceEncapsulation/client/RCSAddress.java
service/resource-encapsulation/sdk/java/src/org/iotivity/ResourceEncapsulation/client/RCSDiscoveryManager.java
service/resource-encapsulation/sdk/java/src/org/iotivity/ResourceEncapsulation/client/RCSRemoteResourceObject.java
service/resource-encapsulation/sdk/java/src/org/iotivity/ResourceEncapsulation/common/RCSResourceAttributes.java
service/resource-encapsulation/sdk/java/src/org/iotivity/ResourceEncapsulation/server/Builder.java
service/resource-encapsulation/sdk/java/src/org/iotivity/ResourceEncapsulation/server/RCSGetResponse.java
service/resource-encapsulation/sdk/java/src/org/iotivity/ResourceEncapsulation/server/RCSResourceObject.java
service/resource-encapsulation/sdk/java/src/org/iotivity/ResourceEncapsulation/server/RCSSetResponse.java
service/resource-encapsulation/sdk/java/src/org/iotivity/ResourceEncapsulation/utils/DiscoveryType.java
service/resource-encapsulation/src/resourceContainer/SConscript

Change-Id: I477f9106a4baaa8609635eab9782adbdf26c4b6a
Signed-off-by: hunje.yeon <hunje.yeon@samsung.com>
8 years ago[TIZEN] Updated properties of Configuration resource in Things manager.
arya.k [Thu, 10 Sep 2015 11:58:54 +0000 (17:28 +0530)]
[TIZEN] Updated properties of Configuration resource in Things manager.

"Device Name" and "Location Name" properties are added and "SystemTime" property
is removed.

diagnosticsresource file is renamed to maintenanceresource.

Change-Id: I4fab4b7989a714d2aa1089f22f8adde674597bab
Signed-off-by: arya.k <arya.kumar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2445
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoresource: Add test for ConstructResourceObject with InvalidUri
Ravi Nanjundappa [Wed, 9 Sep 2015 10:05:39 +0000 (15:35 +0530)]
resource: Add test for ConstructResourceObject with InvalidUri

Added a test case for ConstructResourceTest to simulate the scenario
of Resource creation with uri having of not having "/" as its prefix.

Change-Id: Iadfc60fa67e3f5d0d2653720f5557c4a0e5279dd
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2418
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoBundle isolation - use separate threads for activation
Markus Jung [Wed, 9 Sep 2015 06:17:29 +0000 (15:17 +0900)]
Bundle isolation - use separate threads for activation

The bundle activation is now triggered in a separate thread. If one bundle
fails at activation other bundles can still succeed. When the resource
container is started and the bundles are activated, the execution flow
waits up to 10 secs to join the activators. If a bundle blocks its
activation is not completed, but other bundles are not affected.

Change-Id: Ie3f44639a4ae965941fcd1120497006830952987
Signed-off-by: Markus Jung <markus.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2417
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years ago[Services - Things Manager] Removed Things Manager class and exposed its component...
Jay Sharma [Thu, 10 Sep 2015 16:28:14 +0000 (21:58 +0530)]
[Services - Things Manager] Removed Things Manager class and exposed its component classes for SDK

- Updated Java SDK
- Updated JNI layer

Change-Id: I910b9990c9d60865519af152cf8057302d713547
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2425
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years ago[Things-Manager] Updated Things Manager Sample Applications
Jay Sharma [Thu, 10 Sep 2015 12:19:06 +0000 (17:49 +0530)]
[Things-Manager] Updated Things Manager Sample Applications

- Updated TMSampleApp and con-server app as per new Java SDK

Change-Id: Ic699461a1c0e31fff01366ba41bc758836b60da9
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2426
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoFixed pointer-type arrays with NULL values
Erich Keane [Thu, 10 Sep 2015 17:24:53 +0000 (10:24 -0700)]
Fixed pointer-type arrays with NULL values

NULL values for OCRepresentation and string types in an array would
cause a variety of seg-faults.  This patch corrects the behavior to
allow for NULLs in these arrays.

This is necessary because the CSDK enforces rectangular arrays, but
the C++ stack does NOT, so it compiles with those dimensions.

Change-Id: Ie0ddc5faea980ccb37f0ac8f6b73027b965b7257
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2452
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoRemove ifaddr files
Tim Kourt [Fri, 4 Sep 2015 21:54:56 +0000 (14:54 -0700)]
Remove ifaddr files

No need for ifaddr files and removed them.

Change-Id: I2250edf4feb3950b7354858e5f1cf3ae91330274
Signed-off-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Signed-off-by: Tim Kourt <tim.a.kourt@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2384
Reviewed-by: John Light <john.j.light@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoreplaced some ERROR tag with DEBUG
jihwan.seo [Thu, 10 Sep 2015 01:45:36 +0000 (10:45 +0900)]
replaced some ERROR tag with DEBUG

this log is giving some confusion.

Change-Id: I9a31bdc287bd8742213e1bcee26f19edabfeea97
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2437
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
8 years ago[TIZEN] Removed things manager class dependency from TIZEN SDK and used its component...
arya.k [Thu, 10 Sep 2015 04:54:06 +0000 (10:24 +0530)]
[TIZEN] Removed things manager class dependency from TIZEN SDK and used its component class.

Updated tizen sample applications to removed things manager class dependency.

Enabled things manager library build for tizen.

Change-Id: I30db7102d6598103c46b3044fff1e218acded6c5
Signed-off-by: arya.k <arya.kumar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2401
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years ago[Resource-Encapsulation] Added Resource Container in Java SDK
Jay Sharma [Tue, 1 Sep 2015 08:10:58 +0000 (13:40 +0530)]
[Resource-Encapsulation] Added Resource Container in Java SDK

- Updated Java sdk for resource Container
- updated client and server jni files for exceptions.

Change-Id: I7406be52e1cb596a27a9b8d130e029f30075fffe
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2332
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Rami Jung <rami.jung@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
(cherry picked from commit fc35cee12e5d2b301a934d94e1f2539efe1c018a)
Reviewed-on: https://gerrit.iotivity.org/gerrit/2429

8 years ago[Resource-Encapsulation] Updated Android SampleResorceClient App
Jay Sharma [Fri, 4 Sep 2015 04:45:06 +0000 (10:15 +0530)]
[Resource-Encapsulation] Updated Android SampleResorceClient App

- Added Resource Container part.
- updated comments

Change-Id: If6821f26cd9d39dd13f0ff8e13e1ab050b7e993b
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2371
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Rami Jung <rami.jung@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
(cherry picked from commit efbf6296829a1394908e40b74743f179c7087179)
Reviewed-on: https://gerrit.iotivity.org/gerrit/2428

8 years ago[Resource-Encapsulation] Enabled Sample bundle build for Android platform
Jay Sharma [Wed, 9 Sep 2015 16:03:14 +0000 (21:33 +0530)]
[Resource-Encapsulation] Enabled Sample bundle build for Android platform

- [Resource Container] Soft Sensor Bundle build for android

Change-Id: I56104b8f738da175ff1c424532bad26bcfd37403
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2427
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoRemoved unused defines from ocstackconfig header file
Sachin Agrawal [Wed, 9 Sep 2015 16:16:59 +0000 (09:16 -0700)]
Removed unused defines from ocstackconfig header file

Since OIC stack now supports Block wise transfer and payload check
is done in CA layer for MAX PDU size, there is no need for max request
and max response variables. MAx Dev address size is defined in cacommon
header file.

Change-Id: I77de6aba4664d8675b559abe4d220a0ce722ff51
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2430
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoFixed intialization of 3-deep arrays in CPP
Erich Keane [Wed, 9 Sep 2015 16:40:58 +0000 (09:40 -0700)]
Fixed intialization of 3-deep arrays in CPP

The C++ 3 deep arrays were seg-faulting, since the initial vector
was not initialized correctly with the size.  This patch ensures
that this happens correctly.

I've validated that the 3 deep array of Ints works correctly after
this patch.

Change-Id: I55166105d2a6a9ee97d88e287b54705a8f175cb6
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2432
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoRemoved memory leaks in CA Layer
hyuna0213.jo [Tue, 8 Sep 2015 07:33:06 +0000 (16:33 +0900)]
Removed memory leaks in CA Layer

These memory leaks are reported by Valgrind.
The blockwise-transfer was not properly free the memory
that was allocated.

Change-Id: Ibfefc94879fc31f562139e0bc68b53b4a3b34ff8
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2400
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoFix regression on confirm-able messages.
Stephane Lejeune [Tue, 8 Sep 2015 10:07:05 +0000 (12:07 +0200)]
Fix regression on confirm-able messages.

MessageID should not be updated with the BlockID when the transfer is
not using the block-tranfer mechanism. This unnecessary update was
causing an error that prevented the pdu to be transmited normally.

Change-Id: I5927a636fb05f77fb2aa085e92b6f362e6e2a69e
Signed-off-by: Stephane Lejeune <stlejeun@cisco.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2402
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hyuna Jo <hyuna0213.jo@samsung.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoModify specification for Tizen build
Minchul Lee [Wed, 26 Aug 2015 07:00:50 +0000 (16:00 +0900)]
Modify specification for Tizen build

Change-Id: Id036ce3f4e779fbba829aff16e959a7854bba9ee
Signed-off-by: Minchul Lee <slotus.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2278
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
8 years agoMade the AttributeItem nullptr_t enabled only for direct conversions
Erich Keane [Tue, 8 Sep 2015 22:03:46 +0000 (15:03 -0700)]
Made the AttributeItem nullptr_t enabled only for direct conversions

This will fix the GCC5.0 and CLANG 3.5 and newer compile issues.

Change-Id: Ib9c6b69c29e4c6ac70f0d04a2c791a60eae004f9
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2414
Reviewed-by: Kevron Rees <tripzero.kev@gmail.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoFixed CPP Conversion of nested array types
Erich Keane [Tue, 8 Sep 2015 20:21:14 +0000 (13:21 -0700)]
Fixed CPP Conversion of nested array types

The CPP array type was incorrectly using reserve instead of
resize for the smaller vectors.  This resulted in the index-assignment
of each element to not work properly.  This patch fixes this, so that
the arrays are properly loaded.

Change-Id: I29eb78a1dc69602087ba9861a378f478d611b0f0
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2412
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoChanged arraylist implementation to avoid floating point.
Jon A. Cruz [Fri, 4 Sep 2015 18:33:53 +0000 (11:33 -0700)]
Changed arraylist implementation to avoid floating point.

Updated calculation of u_arraylist growth to no longer use
floating point. This helps for limited platforms that might
not have native FP support, such as some Arduino boards.

Change-Id: I7d8923786ac31cab8eb3004c8a956d36d884ec29
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2382
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
8 years agoFix for IOT-686
Ravi Nanjundappa [Mon, 7 Sep 2015 08:35:25 +0000 (14:05 +0530)]
Fix for IOT-686

Replaced "tiny-cbor" with "tinycbor".

Change-Id: I923cb348fdfda3afa7de97b7323c5e4275210127
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2395
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoresource-encapsulation: Updated doxygen comments
Ravi Nanjundappa [Wed, 2 Sep 2015 07:16:09 +0000 (12:46 +0530)]
resource-encapsulation: Updated doxygen comments

Updated and fixed some issues w.r.t doxygen comments in resource-encapsulation dir.

Change-Id: I95f61c9d0b99a89a8d72812eb5e2c8c7ff7fe170
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2343
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
8 years agosoft-sensor-manager: Updated doxygen comments
Ravi Nanjundappa [Wed, 2 Sep 2015 08:24:22 +0000 (13:54 +0530)]
soft-sensor-manager: Updated doxygen comments

Updated and fixed some issues w.r.t doxygen comments in soft-sensor-manager dir.

Change-Id: I8996af3eff49eed1f8696c5c8ba02cd641588692
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2345
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
8 years ago[RI] Fix for out of memory issue in Arduino Mega
koushik.girijala [Thu, 3 Sep 2015 11:01:42 +0000 (16:31 +0530)]
[RI] Fix for out of memory issue in Arduino Mega

OC log and OC log V used almost 3500bytes of RAM in Mega board because of improper log usage.
Updated code using PCF properly in OC logging to save almost 3500 bytes of RAM memory.

Verfied changes on both Arduino Due and Mega boards and found Working fine.

Change-Id: I9ca134d5cff9c8a91707a18bd9279089533a9b99
Signed-off-by: koushik.girijala <g.koushik@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2363
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoClean up structure allocation to follow best practices.
Doug Hudson [Tue, 8 Sep 2015 16:58:18 +0000 (09:58 -0700)]
Clean up structure allocation to follow best practices.

Change-Id: Ia10b74926fce44cf0b55ed4964ea5f634e1c73d3
Signed-off-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2340
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
8 years agoAdded support for CBOR content format option.
Stephane Lejeune [Mon, 24 Aug 2015 14:15:30 +0000 (16:15 +0200)]
Added support for CBOR content format option.

Added a new option defining content format for CBOR encoded payloads.
This will allow a more robust interpretation of incomming payloads
and will also permit generic stacks that have no apriori knowledge
about OIC to interpret the payloads going accross the network.

Change-Id: I34feb4e305458fcef4e7343cda313d9a52d12046
Signed-off-by: Stephane Lejeune <stlejeun@cisco.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2262
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
8 years agoInclude RCS client module in Resource Container.
jyong2.kim [Sun, 6 Sep 2015 08:08:49 +0000 (17:08 +0900)]
Include RCS client module in Resource Container.

Soft-sensor using resource-container needs client functionality.
but it is not supported on resource-container.
so, resource container includes the RCS-client-module, and enable to use client-function at soft-sensor.

This commit is initial version for resource container including client module.

Update discover logic,
and prevent multiple access to callback function.

Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Change-Id: I3ba81ed185b82ee05a95de493a6ff560838e1054
Reviewed-on: https://gerrit.iotivity.org/gerrit/2388
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoModify the term "Diagnostics" to "Maintenance" in file names
Jihun Ha [Tue, 8 Sep 2015 01:03:05 +0000 (10:03 +0900)]
Modify the term "Diagnostics" to "Maintenance" in file names

ThingsDignostics and DiagnosticsCollection files are renamed to
ThingsMaintenance and MaintenanceCollection files.

Update properties of Configuration resource

"Device Name" and "Location Name" properties are added and "SystemTime" property
is removed.

Change-Id: I0f4028aea14997a6a35ae5660671e47aedb2b67b
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2394
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years ago[Resource-Encapsulation] Java SDK for resource-encapsulation layer
Jay Sharma [Mon, 7 Sep 2015 15:43:42 +0000 (21:13 +0530)]
[Resource-Encapsulation] Java SDK for resource-encapsulation layer

- SDK for client side [updated as per review comments]
- SDK for server side [updated as per review comments]

Change-Id: Ie13656f263d39377269dd2479c43ef2a3efaeac0
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2372
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoTizen sample application updated for resource container and review comment changes.
arya.k [Mon, 7 Sep 2015 10:18:37 +0000 (15:48 +0530)]
Tizen sample application updated for resource container and review comment changes.

Change-Id: I64ddbfc24dc884af993efbfef86de3c9dd10f323
Signed-off-by: arya.k <arya.kumar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2380
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years ago[Resource-Encapsulation]Build service container sample bundle for tizen Platform.
arya.k [Mon, 7 Sep 2015 10:48:50 +0000 (16:18 +0530)]
[Resource-Encapsulation]Build service container sample bundle for tizen Platform.

Change-Id: I8dfc06685fc719bb88ed0a98f87aec1c3dcde0ad
Signed-off-by: arya.k <arya.kumar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2397
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years ago[Resource-Encapsulation] Android Sample Application for Server side
Jay Sharma [Wed, 2 Sep 2015 05:13:38 +0000 (10:43 +0530)]
[Resource-Encapsulation] Android Sample Application for Server side

- For Server Builder APIs
- For Resource Container APIs

Change-Id: Ia15bbfdadddc82ca45ebee8e58e579b5db399e0d
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2342
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
(cherry picked from commit 431309817995f5b5fdddf2054f40bed2ffbd67b6)
Reviewed-on: https://gerrit.iotivity.org/gerrit/2374

8 years agoReplace the old version of service document to v.9.2
hunje.yeon [Mon, 7 Sep 2015 01:42:31 +0000 (10:42 +0900)]
Replace the old version of service document to v.9.2

Remove the old version, v0.9.1, of NM, PPM, SSM documents from service/docs/ folder.
Add the programmer's guide for resource encapsulation for v0.9.2

Signed-off-by: hunje.yeon <hunje.yeon@samsung.com>
Change-Id: Id1512d124bdfe78337756f9f22f0401124375b25
Reviewed-on: https://gerrit.iotivity.org/gerrit/2389
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoRemove a Things Manager class and expose its component classes for SDK
Jihun Ha [Fri, 4 Sep 2015 07:20:39 +0000 (16:20 +0900)]
Remove a Things Manager class and expose its component classes for SDK

Previously, there was a single Thing Manager class for SDK which comprises
ThingsConfiguration, ThingsDiagnostics, GroupManager, and GroupSynchronization
classes. Now, we've decided to keep the components seperately for more
efficient maintenance for each component.

Additionally, to be aligned with OIC spec, a class name of "DiagnosticsCollection" has
been changed into "MaintenanceCollection".

Change-Id: I2b5cbf832abca3ac3ecfcab88e2153cca91a67f6
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2377
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agorealigned some preprocess to the left.
jihwan.seo [Thu, 3 Sep 2015 14:08:00 +0000 (23:08 +0900)]
realigned some preprocess to the left.

it can be gaven some confusion.

Change-Id: If3b228b404e830fad23ce793334723d0e0f92e89
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2366
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoAndroid: Allow "null" entityHandler to be passed to registerResource in order to...
Cosmin Petrisor [Wed, 2 Sep 2015 08:19:41 +0000 (11:19 +0300)]
Android: Allow "null" entityHandler to be passed to registerResource in order to use the defaultEntityHandler (see Collections usage)

Change-Id: I0e685311c70a297d76a1a7a908a4470610c47b7f
Signed-off-by: Cosmin Petrisor <cosmin.petrisor@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2346
Reviewed-by: Tim Kourt <tim.a.kourt@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoFixes the observe option size to the legal max value of 3.
Stephane Lejeune [Wed, 2 Sep 2015 11:45:55 +0000 (13:45 +0200)]
Fixes the observe option size to the legal max value of 3.

The options that have variable byte length are now being
encoded to their minimal value. This patch also truncates the
option data to their maximum value allowed per the spec. One specific
example is the observer data option which receives 4 bytes of data from
the OC stack. When encoding in CoAP, the maximum value is 3 bytes.
Consequently, the CA layer which is aware of the CoAP encoding truncates
the value back to 3 bytes. Also when registering an observe, the data
length is now set to 0 using the CoAP var byte encoding which saves the
4 bytes that were just carying zero's before thsi fix.

Change-Id: I033969b407aa3426df8c85c3836206c9366fb0a2
Signed-off-by: Stephane Lejeune <stlejeun@cisco.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2351
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoFix for the Jira issue IOT-524
Ravi Nanjundappa [Thu, 3 Sep 2015 08:35:04 +0000 (14:05 +0530)]
Fix for the Jira issue IOT-524

This patch addresses the first part of IOT-524. This patch is a continuation of
the changes submitted at https://gerrit.iotivity.org/gerrit/#/c/1439/.
The current changes include installing the public header files inside PREFIX/include/
directory.
For ex: /home/XYZ/BUILD_IOT_PREFIX/include/resource/ocstack.h

Change-Id: I40be9cfe112a81263fb22acf494fa7f8fd8dc549
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2362
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years ago[Resource-Encapsulation] Updated Android SampleResorceClient App
Jay Sharma [Fri, 4 Sep 2015 04:45:06 +0000 (10:15 +0530)]
[Resource-Encapsulation] Updated Android SampleResorceClient App

- Added Resource Container part.
- updated comments

Change-Id: If6821f26cd9d39dd13f0ff8e13e1ab050b7e993b
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2371
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Rami Jung <rami.jung@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years ago[Resource-Encapsulation] Added Resource Container in Java SDK
Jay Sharma [Tue, 1 Sep 2015 08:10:58 +0000 (13:40 +0530)]
[Resource-Encapsulation] Added Resource Container in Java SDK

- Updated Java sdk for resource Container
- updated client and server jni files for exceptions.

Change-Id: I7406be52e1cb596a27a9b8d130e029f30075fffe
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2332
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Rami Jung <rami.jung@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years ago[Resource-Encapsulation] Android Sample Application for Server side
Jay Sharma [Wed, 2 Sep 2015 05:13:38 +0000 (10:43 +0530)]
[Resource-Encapsulation] Android Sample Application for Server side

- For Server Builder APIs
- For Resource Container APIs

Change-Id: Ia15bbfdadddc82ca45ebee8e58e579b5db399e0d
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2342
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years ago[Resource-Encapsulation] Enabled Sample bundle build for Android platform
Jay Sharma [Tue, 1 Sep 2015 04:33:20 +0000 (10:03 +0530)]
[Resource-Encapsulation] Enabled Sample bundle build for Android platform

- [Resource Container] Soft Sensor Bundle build for android
- Added Exception to RCSRemoteResourceObject API

Change-Id: I98e3711857a6339efc09e146c2e6fb399e654b44
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2329
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoResolved Tizen crash while printing FATAL errors.
vimala.v [Mon, 31 Aug 2015 10:08:15 +0000 (15:38 +0530)]
Resolved Tizen crash while printing FATAL errors.

Temp fix for https://jira.iotivity.org/browse/IOT-704.
This fix will be reverted back when Tizen binary issue is resolved.

Change-Id: I38cdff511c61ac74912a45763be9b7dc3b7e9e4e
Signed-off-by: vimala.v <vimala.v@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2319
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoFix DefaultCollectionEntityHandler in csdk/stack/src/occollection.c to handle POST...
Cosmin Petrisor [Mon, 31 Aug 2015 16:10:09 +0000 (19:10 +0300)]
Fix DefaultCollectionEntityHandler in csdk/stack/src/occollection.c to handle POST requests

Change-Id: Icd1d5c5a960d21525bca363956fbbad0c6c65efd
Signed-off-by: Cosmin Petrisor <cosmin.petrisor@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2322
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agocode refactoring for blockwise-transfer
hyuna0213.jo [Tue, 1 Sep 2015 02:07:46 +0000 (11:07 +0900)]
code refactoring for blockwise-transfer

the code refactoring for blockwise-transfer.
- add null check logic
- changed coding style
- fixed minor bugs

Change-Id: I42eea430765c5dc1cac9ea7f18cca3311b465b38
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2328
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
8 years agoEnabled occlient to communicate over EDR adapter on Tizen.
vimala.v [Wed, 2 Sep 2015 09:04:25 +0000 (14:34 +0530)]
Enabled occlient to communicate over EDR adapter on Tizen.

The wait/re-try logic is added in CAEDRClientSendMulticastData() to make sure
atleast one connection is established before sending the data.

Change-Id: I2ea9fdab45bef800f05ade65296d3c4014037dea
Signed-off-by: vimala.v <vimala.v@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2348
Reviewed-by: Abhishek Sharma <ce.abhishek@samsung.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
8 years ago[Resource Encapsulation] Android unittest crash fix.
arya.k [Wed, 2 Sep 2015 09:25:01 +0000 (14:55 +0530)]
[Resource Encapsulation] Android unittest crash fix.

Change-Id: I3a71aa30e7521c96a32bf5eb2de76a7189320525
Signed-off-by: arya.k <arya.kumar@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2349
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoFixed bug in u_arraylist_contains caused by poor member naming.
Jon A. Cruz [Tue, 1 Sep 2015 22:42:38 +0000 (15:42 -0700)]
Fixed bug in u_arraylist_contains caused by poor member naming.

Corrected a bug in u_arraylist_contains caused by the member names
'size' and 'length' being too similar and hiding a logic problem.
Fixed by changing 'size' to the more common 'capacity'.

The base fix (without any of the name change) was pulled from
Vimala's revision 10 submission of change 2301.
https://gerrit.iotivity.org/gerrit/#/c/2301/10/

Change-Id: I22ac6fc159669ad58212b145f70cb559187fa999
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2339
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Vimala Vishwanathan <vimala.v@samsung.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
8 years agoResolved doxm issue
Randeep Singh [Tue, 1 Sep 2015 12:29:06 +0000 (21:29 +0900)]
Resolved doxm issue

SVR db is not not getting updated with owned as true and owner
information, in case of JUST_WORKS case.

Change-Id: Icbbd19171d0177c5fadae429dc54b8626af57a75
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2336
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Shilpa Sodani <shilpa.a.sodani@intel.com>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
8 years ago[Resource-Encapsulation] Java SDK for resource-encapsulation layer
Jay Sharma [Mon, 31 Aug 2015 17:27:21 +0000 (22:57 +0530)]
[Resource-Encapsulation] Java SDK for resource-encapsulation layer

- SDK for client side [updated as per review comments]
- SDK for server side [updated as per review comments]

Change-Id: Ie13656f263d39377269dd2479c43ef2a3efaeac0
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2266
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Rami Jung <rami.jung@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoAdd sequence types to ResourceAttributes
coderhyme [Sat, 29 Aug 2015 05:58:03 +0000 (14:58 +0900)]
Add sequence types to ResourceAttributes

There are sequence types supported by OCRepresentation, for ResourceAttributes to support perfect compatibility with OCRepresentation these types are added.

Change-Id: I260f4363e07e72220a2424c700d12dbef1d10e54
Signed-off-by: coderhyme <jhyo.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2314
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoUpdated provisioning API to cater different connectivity type.
leechul [Thu, 27 Aug 2015 07:07:31 +0000 (16:07 +0900)]
Updated provisioning API to cater different connectivity type.

 - PMGenerateQuery() will make a proper query
   based on connectivity type of endpoint.

[Patch #1] Intial upload
[Patch #2] Update according to comments.
[Patch #3] Modify the buffer size which is request query is stored.
[Patch #4] Update according to comments.
[Patch #5] Update according to Jon's comment.

Fixed a buffer size for writing queries.

Change-Id: I996888faec20614736907dc7c17300eb8d1550cf
Signed-off-by: leechul <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2300
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Tested-by: Sachin Agrawal <sachin.agrawal@intel.com>
8 years agoAndroid: Mimics stack behavior and allows "null" entityHandler to be passed into...
Tim Kourt [Fri, 28 Aug 2015 18:54:12 +0000 (11:54 -0700)]
Android: Mimics stack behavior and allows "null" entityHandler to be passed into the registerResource API

Change-Id: Ic7d11043e2b5a18e832e06ef1c71865d6a912530
Signed-off-by: Tim Kourt <tim.a.kourt@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2313
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoAndroid: Allows to destroy OcResource java object before all of the C++ callbacks...
Tim Kourt [Thu, 27 Aug 2015 21:27:06 +0000 (14:27 -0700)]
Android: Allows to destroy OcResource java object before all of the C++ callbacks have been received.

Change-Id: Idc77b12f7ad6aa3dd8d4cea6e4555eac3f776ab7
Signed-off-by: Tim Kourt <tim.a.kourt@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2306
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoFixed android build to work multithreaded.
Jon A. Cruz [Fri, 28 Aug 2015 07:07:27 +0000 (00:07 -0700)]
Fixed android build to work multithreaded.

Previously the android build was missing proper dependencies
so could only be built if multithreading was disabled. This change
adds minimal dependencies to get gradle to be executed after the
native parts are built, and re-enables threaded builds.

This could reduce build times by roughly 75% on average systems.

Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Change-Id: Iccecd7cc976855592d3375027a4de1f9fd2dbe98
Reviewed-on: https://gerrit.iotivity.org/gerrit/2310
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Tim Kourt <tim.a.kourt@intel.com>
8 years agoFixed IOT-674 bug
Shilpa Sodani [Fri, 28 Aug 2015 07:37:05 +0000 (00:37 -0700)]
Fixed IOT-674 bug

Updated doxm resource to set it's oxmSel field to selected ownership
transfer method during onboarding process.

Change-Id: I518e69e9f92b5dbbb8bb7fb83c2489a272c950b8
Signed-off-by: Shilpa Sodani <shilpa.a.sodani@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2311
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
8 years agoUpdated doxygen comments for OCResource.h
Ravi Nanjundappa [Thu, 27 Aug 2015 06:07:33 +0000 (11:37 +0530)]
Updated doxygen comments for OCResource.h

Updated and fixed some issues w.r.t doxygen comments in OCResource.h file

Change-Id: Ia89553197b32aad5ae1c8fa6482c03783e70baed
Signed-off-by: Ravi Nanjundappa <nravi.n@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2299
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoFixed the IsRequestWithinValidTimeTest unit tests.
Shilpa Sodani [Wed, 26 Aug 2015 07:17:23 +0000 (00:17 -0700)]
Fixed the IsRequestWithinValidTimeTest unit tests.

Fixed  IsRequestWithinValidTimeTest unit tests so that they don't failing on boundary
conditions.

Change-Id: Ie52e3e75d8fc2ee052f43a532681cb2091545fbb
Signed-off-by: Shilpa Sodani <shilpa.a.sodani@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2279
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years ago[Resource-Encapsulation] Android Sample Application for client side APIs.
Jay Sharma [Tue, 25 Aug 2015 15:59:42 +0000 (21:29 +0530)]
[Resource-Encapsulation] Android Sample Application for client side APIs.

Change-Id: I1605fe00027c8bd6d2182a70e3dbb35f2d6c2b2d
Signed-off-by: Jay Sharma <jay.sharma@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2267
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Hun-je Yeon <hunje.yeon@samsung.com>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoupdate comments of RCSResourceObject.h for doxygen
Rami Jung [Thu, 27 Aug 2015 07:58:34 +0000 (16:58 +0900)]
update comments of RCSResourceObject.h for doxygen
-straighten up lines
-typedef AttributeUpdatedListener
-class LockGuard

Change-Id: Idfbad3ade7fcedc6870835bff32b966d574bc8b5
Signed-off-by: Rami Jung <rami.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2302
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoGenerate device ID from Secure Virtual Resource
Sakthivel Samidurai [Thu, 27 Aug 2015 20:25:54 +0000 (13:25 -0700)]
Generate device ID from Secure Virtual Resource

SRM should generate the device ID for the resource server

Change-Id: Ic4f83f63a59827bf5cfb412afc34e1d955ee69e2
Signed-off-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2162
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Tested-by: Sachin Agrawal <sachin.agrawal@intel.com>
8 years agoFix Android EDR Client memory leak
Jaehong Jo [Thu, 27 Aug 2015 15:15:18 +0000 (00:15 +0900)]
Fix Android EDR Client memory leak

Delete JNI local reference

Change-Id: Iee79cdf5adac2a8d2f1bac67fd1ac34757d974d8
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2305
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoOCRepresentation: fix segmentation fault by initializing memory
Hauke Mehrtens [Wed, 26 Aug 2015 13:36:58 +0000 (15:36 +0200)]
OCRepresentation: fix segmentation fault by initializing memory

dimensions was not fully initialized, but used by the code, so it could
contain arbitrary memory. If this memory was a big number this code
could allocate very much memory as this was used to create a 2 or 3
dimensional arrays.

This fixes a Segmentation fault seen in normal operation of the
garageserver and a invalid memory read and a following segmentation
fault seen with valgrind in the garageserver

Change-Id: Ifbab3d48b00bd2e3559ca3a8d79336ecf5feef6e
Signed-off-by: Hauke Mehrtens <hauke.mehrtens@lantiq.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2285
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoVariable declaration incorporated in for() loop itself.
Jaehong Jo [Thu, 27 Aug 2015 11:45:33 +0000 (20:45 +0900)]
Variable declaration incorporated in for() loop itself.

https://gerrit.iotivity.org/gerrit/#/c/2277/

Change-Id: I83c03bdba83109b9a313dee977efd13b6e65aa55
Signed-off-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2303
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
8 years agoChange build option about provisioning
js126.lee [Wed, 26 Aug 2015 07:41:50 +0000 (16:41 +0900)]
Change build option about provisioning

Now, provision manager is working on linux only.
So, build condition is changed to SECURED=1 and linux.

Change-Id: I310ccffcd911ec925b9c9725909d22d24062603d
Signed-off-by: js126.lee <js126.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2280
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Woochul Shim <woochul.shim@samsung.com>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
8 years agoModify a group management implementation with CBOR conversion in c stack
Jihun Ha [Thu, 27 Aug 2015 06:33:08 +0000 (15:33 +0900)]
Modify a group management implementation with CBOR conversion in c stack

Previously, oicgroup.c file dealt with processing group action requests and
constructing the corresponding responses and it was strongly related with
json encoding/decoding. With this commit, all json-based codes in the file
have been updated to use CBOR instead of json.

Change-Id: I2f0953fab9c77024435d389538a4f43b600d7864
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2297
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
8 years agoadd a gtest case into serverBuilder unittest of resource-encapsulation for testing...
Rami Jung [Wed, 26 Aug 2015 12:05:37 +0000 (21:05 +0900)]
add a gtest case into serverBuilder unittest of resource-encapsulation for testing nested attributes

new case of  unittest : SettingNestedAttributesIsSameToGettingNestedAttributes

A RCSResourceAttributes, itself could be value of a key-value pair like int, double, string and so on.
That means developers are able to nested structure when they make key-value pairs and it is possible to set up the following hierachy in attributes.

{
 "type": "Living Colors",
 "name": "LC 1",
 "modelid": "LC0015",
 "swversion": "1.0.3",

 "state": {
    "hue": 50000,
    "on": true,
    "effect": "none",
    "alert": "none",
    "bri": 200,
    "sat": 200,
    "ct": 500,
    "reachable": true,
    "colormode": "hs"
  }
}

Change-Id: Ifdf2fb41860ad7227753677741bf79c6709fbaa6
Signed-off-by: Rami Jung <rami.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2284
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>