jk13 [Tue, 7 Apr 2015 06:54:58 +0000 (15:54 +0900)]
SoftSensor Manager - Fix potential issues detected by static analysis tool
Fix potential issues
Change-Id: Ifc22e31b7e3e0028914458ce71d94f5d4e9c991c
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/663
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
jk13 [Mon, 6 Apr 2015 11:16:52 +0000 (20:16 +0900)]
Softsensor Manager - Fix java api method name to follow coding guidelines
1. Fix jave api method name to follow coding guidelines
Change-Id: If707b52ee3da12b635e7bc44ecd18552b28e568d
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/654
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Rami Jung [Tue, 7 Apr 2015 06:26:25 +0000 (15:26 +0900)]
Additional removing 'makefile's for the primitive service
Change-Id: If556c6b5a0c83d9408d02875b7bfc22c3c279ab7
Signed-off-by: Rami Jung <rami.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/662
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
hunje.yeon [Fri, 3 Apr 2015 14:46:20 +0000 (23:46 +0900)]
Notification Manager - Fix memory deallocation.
Problem: Memory unsafe function is used.
How: Change sprintf to snprinft to avoid memory problems.
Change-Id: I864c5c39c13c07533693b6b59f35e48d15518f4e
Signed-off-by: yeonhunje <hunje.yeon@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/643
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
hunje.yeon [Sat, 4 Apr 2015 14:23:09 +0000 (23:23 +0900)]
Notification Manager API Doxygen update
remove the invalid return value from the documentation
Change-Id: Iba341cc59475764d52b06d4cf2fc5ba787a9bba8
Signed-off-by: hunje.yeon <hunje.yeon@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/649
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
Rami Jung [Fri, 3 Apr 2015 01:00:15 +0000 (10:00 +0900)]
Removing 'Makefile's for the primitive service
Change-Id: I583d71d084692f49572d6e232f136d6288c1b1e9
Signed-off-by: Rami Jung <rami.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/639
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
Sanjeev BA [Fri, 3 Apr 2015 04:56:46 +0000 (13:56 +0900)]
Fix build instruction.
Change-Id: I05df7a6900635c830dd59e4006a24c4fb399ce61
Signed-off-by: Sanjeev BA <as2902.b@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/640
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Minchul Lee [Thu, 26 Mar 2015 14:59:06 +0000 (23:59 +0900)]
Fix aarch64 build error on tizen 3.0
Change-Id: Id5cc93c9264dcec660a76f6aa012ec2c31123b95
Signed-off-by: Minchul Lee <slotus.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/580
Reviewed-by: saerome kim <saerome.kim@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Caiwen Zhang <caiwen.zhang@intel.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Harish Kumara Marappa [Thu, 2 Apr 2015 17:10:13 +0000 (22:40 +0530)]
configuration server tizen sample application for testing configuration
APIs
Change-Id: I9a8c691d01307e08a7d1f86eee473f36cce8330f
Signed-off-by: Harish Kumara Marappa <h.marappa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/478
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Harish Kumara Marappa [Thu, 2 Apr 2015 16:59:12 +0000 (22:29 +0530)]
ThingsManager service tizen sample application for testing configuration
APIs and Group action APIs
Change-Id: I6e77d1dba0488498da61df40d0a1a61e13badd0f
Signed-off-by: Harish Kumara Marappa <h.marappa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/480
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
YounghyunJoo [Tue, 31 Mar 2015 14:34:03 +0000 (23:34 +0900)]
Align to the Java Class package name change in Protocol Plugin manager service JNI layer
Align to the Java Class package name change in Protocol Plugin manager service JNI layer
Change-Id: I9e24f7a9faeacf197b33a17bab1e0d1e3f335c2a
Signed-off-by: YounghyunJoo <yh_.joo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/612
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
HyunJun Kim [Thu, 2 Apr 2015 07:07:55 +0000 (16:07 +0900)]
Fix minor issue for Group Action of ThingsManager.
addActionSet and executeActionSet do not return error message when entered invalid parameters.
In this case, we return 'OC_STACK_INVALID_PARAM'.
getActionSetfromString didn't return when entered malformed string.
It will be returned NULL in this case.
Change-Id: Ifd28640d6aca6714646b33ea8fb69c55f8ca36f7
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/631
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Ossama Othman [Thu, 12 Mar 2015 16:59:11 +0000 (09:59 -0700)]
Fix clean build error.
".sconsign.dblite" should be deleted before running any configuration
tests. Furthermore, do not run configuration tests when running scons
'clean' or 'help' operations.
Change-Id: Iedd97533db808bd2ac401defb38fd5b672649d45
Signed-off-by: Caiwen Zhang<caiwen.zhang@intel.com>
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/426
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
jk13 [Mon, 30 Mar 2015 02:36:26 +0000 (11:36 +0900)]
[SSM] Fix Java api comments
Fix Java api comments
Change-Id: I0931eca3e4d3cab1861f3add814a2e9395653d2a
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/601
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Charlie Lenahan [Fri, 27 Mar 2015 18:08:13 +0000 (14:08 -0400)]
changes to build CSDK for iOS, make .frameworks
iOS support for the CSDK is still experimental.
Change-Id: Ie5572d5246ffb2f1098437e78f332373eed4d8e9
Signed-off-by: Charlie Lenahan <charlie.lenahan@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/596
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Tested-by: Patrick Lankswert <patrick.lankswert@intel.com>
Caiwen Zhang [Wed, 25 Mar 2015 03:50:44 +0000 (11:50 +0800)]
Clean Arduino build intermediate files
1) Remove .d files
2) Remove .map file
Change-Id: I866c5542b4bc51f48841588a3a1f880b18439a61
Signed-off-by: Caiwen Zhang<caiwen.zhang@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/569
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Caiwen Zhang [Tue, 24 Mar 2015 07:37:12 +0000 (15:37 +0800)]
fix notification manager sample app build error
liboc.so isn't required to be linked when build C application
Otherwise there may be following error:
out/linux/x86_64/release/liboc.so: undefined reference to
`std::__detail::_Prime_rehash_policy::_M_next_bkt(unsigned long)
const@GLIBCXX_3.4.18'
Change-Id: Idbb5ca305c22477aba19495c8e2b8cf5278bd058
Signed-off-by: Caiwen Zhang<caiwen.zhang@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/554
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: minsuk1.choi <minsuk1.choi@samsung.com>
Reviewed-by: JungYong KIM <jyong2.kim@samsung.com>
Reviewed-by: Heewon Parkhi <h_w.park@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Charlie Lenahan [Thu, 26 Mar 2015 18:08:04 +0000 (14:08 -0400)]
changes to build csdk for os x(darwin)
resolves conflict with ERR_SUCCESS on os x.
rename ERR_????? to OC_ERR_???
Change-Id: I991b1e0aab5fa271c6bfca0a69f8bbbb98ccf610
Signed-off-by: Charlie Lenahan <charlie.lenahan@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/581
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
jk13 [Thu, 26 Mar 2015 08:39:19 +0000 (17:39 +0900)]
[SSM] Modify comments to generate doxygen correctly
1. Modify cpp and java code comments to generate doxygen correctly
Change-Id: I828cebcd4979168e5e9d4de6b8e4defb303e85a8
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/579
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Caiwen Zhang [Tue, 24 Mar 2015 07:58:18 +0000 (15:58 +0800)]
Complete to_string function implementation
Change-Id: I34eae18836b59d1f3b723d35e172a0c5f805192c
Signed-off-by: Caiwen Zhang <caiwen.zhang@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/557
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Jihun Ha [Wed, 25 Mar 2015 12:04:51 +0000 (21:04 +0900)]
Update a way of user interaction in con-server application
If an user hits a "enter" key, the application will give a menu
to the user, again.
Reference: [IOT-335]
Change-Id: Ie32b6f705b76e7ab455f3208d08f8c8be14dc685
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/571
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Charlie Lenahan [Mon, 23 Mar 2015 22:31:53 +0000 (18:31 -0400)]
Add Doxyfile to generate C SDK docs
Change-Id: I3a86656c435dc666bfc4c48051d648993a3cc444
Signed-off-by: Charlie Lenahan <charlie.lenahan@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/548
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Minchul Lee [Tue, 24 Mar 2015 10:35:44 +0000 (19:35 +0900)]
Modifying version number for building on tizen 3.0
Change-Id: Ifc1c8ac9d43fc407db579fbab5c0e10e69fd8a59
Signed-off-by: Minchul Lee <slotus.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/558
Reviewed-by: saerome kim <saerome.kim@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: Caiwen Zhang <caiwen.zhang@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
jyong2.kim [Tue, 24 Mar 2015 13:02:38 +0000 (22:02 +0900)]
Add: PUT/DELETE method for Resource Hosting.
Problem: Resource Hosting's Entity Handler ignore PUT/DELETE request.
How: PUT/DELETE logic added.
Change-Id: Ib277e717ef125590cca0e9e4d18b7877052a3eff
Signed-off-by: jyong2.kim <jyong2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/559
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Jihun Ha [Tue, 24 Mar 2015 08:06:40 +0000 (17:06 +0900)]
Update comments in Things Manager for doxygen
For generating an API document of Things manager by doxygen,
I have updated the existing comments.
Change-Id: I4d3164d4b145f96f62eac5ecce850005ef7cda8c
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/555
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Erich Keane [Tue, 24 Mar 2015 19:36:01 +0000 (12:36 -0700)]
Implemented OCRepresentation::setChildren
As reported in IOT 410, setChildren had a header entry, and
no implementation. This patch implements setChildren
Change-Id: I0f881dab27c09d72fd068c0b2d446bbfcc77a42b
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/562
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Ossama Othman [Tue, 17 Mar 2015 21:43:18 +0000 (14:43 -0700)]
Automatically detect C99 flags for supported compilers.
This patch set allows the required C99 command line flags to be
automatically set earlier in the build process. Currently only gcc is
supported, but adding support for other compilers is straightforward.
Hard-coded '-std=c99' and '-std=gnu99' CFLAGS found throughout
iotivity SConscript files have been removed. Feature test macros have
been added where needed to enable extensions that were disabled by
automatic addition of '-std=c99' to the CFLAGS build variable.
Change-Id: I6d05313aefff1911d1aaa2097954a1878874e73a
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/495
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Caiwen Zhang [Mon, 23 Mar 2015 09:32:52 +0000 (17:32 +0800)]
fix boost library cross-compiling error
Make sure the cross compile toolchain path is added into the 'PATH' key
of the environment.
Change-Id: Iebe881052d5f9c351a86311d86536e5038b1e53d
Signed-off-by: Caiwen Zhang <caiwen.zhang@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/533
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Yuliya Kamatkova <yuliya.kamatkova@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
HyunJun Kim [Fri, 20 Mar 2015 02:35:46 +0000 (11:35 +0900)]
Fix and Add join/leaveGroup function for stability.
We provided leaveGroup in Thingsmanager.
But it has obscurities.
So, we have to separate two leaveGroup functions which
it had different arguments.
Now, We can select join/leaveGroup function to match our situation.
Change-Id: I0a570a4685e833e4e55ced50e1f37971b7076b26
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/522
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
minsuk1.choi [Fri, 20 Mar 2015 07:04:55 +0000 (16:04 +0900)]
Implement: Notification Manager - Resource Hosting
Problem: Not implemented
How: resource hosting feature added.
All review comments fixed.
Change-Id: I5e980f4c16519ba30a6c10313c50ab436fc99810
Signed-off-by: minsuk1.choi <minsuk1.choi@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/489
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jk13 [Fri, 20 Mar 2015 07:58:31 +0000 (16:58 +0900)]
[SSM] Fix code license comments
1. Fix license string with format
Change-Id: If8da57a8a9252ffc4c5a5db5e48189847e167dd6
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/523
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Rami jung [Fri, 20 Mar 2015 08:58:51 +0000 (17:58 +0900)]
[SSM] adding sample SoftSensor plugin & appls . V.02
BMISensor : SoftSensor plugin. after receiving height(m) and weight(kg) , it shows BMI(Body Mass Index)
Weight Seonsr : A dummy pseudo thing sending the weight(kg)
Height Seonsr : A dummy pseudo thing sending the height(m)
Change-Id: I5b16643113569bdaa69cf709ee9335b3b3e80e08
Signed-off-by: Rami jung <rami.jung@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/524
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jk13 [Fri, 20 Mar 2015 02:14:58 +0000 (11:14 +0900)]
[SSM] Add Java SDK comments and fix formatting
1. Add Java SDK description
2. Fix existing comments format
Change-Id: I6d02e63a0c1afc9cab30d8103bc240bb4b890898
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/521
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
Younghyun Joo [Fri, 20 Mar 2015 04:55:39 +0000 (13:55 +0900)]
[PPM] Modify Protocol Plugin Manager for Android platform.
1. Modify Protocol Plugin Manager for Android platform.
2. Change the rapidxml directory from "service/protocol-plugin/lib" to "extlibs"
Change-Id: I045269f3522e9e69b502e1e4706331ff4f991647
Signed-off-by: Younghyun Joo <yh_.joo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/497
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Jihun Ha [Thu, 19 Mar 2015 12:39:28 +0000 (21:39 +0900)]
Update a resource model of configuration/diagnostics resources
We decide to change a resource model from IPSO model to OIC
(resource-attribute)model. By this decision, configuration/diagnostics
resource's server applications utilized by Things Manager are changed.
And ThingsConfiguration and ThingsDiagnostics SDK implementations are also
slightly changed.
Additionally, fix an exception problem in con-server application, which
is refered in [IoT-392]
Change-Id: I267885d710390b3aee7fdd4852c2de33c9300f87
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/514
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Harish Kumara Marappa [Mon, 16 Mar 2015 15:25:25 +0000 (20:55 +0530)]
Protocol plugin service tizen sample application
Change-Id: If0ec6e5882ee303512e641f9996a7cd99d817d5c
Signed-off-by: Harish Kumara Marappa <h.marappa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/481
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jk13 [Wed, 18 Mar 2015 07:05:13 +0000 (16:05 +0900)]
[SSM] Fix IoT-382, 383 issues
1. Fix IoT-382
-> Tizen ssm sample app crashed when start with disabling wifi
: add ip check routine
2. Fix IoT-383
-> Register query failed when greater than(>) or less than(<)
operator is used in query using tizen ssm sample app
: add text unescape function
Change-Id: I1966e122763e31e7b67c0bfded6a8231ed0a401a
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/499
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Minji Park [Thu, 19 Mar 2015 03:58:45 +0000 (12:58 +0900)]
[SSM] Fix IOT-384 issue
Android sample app crashes when invalid cqid is given in cqid textfield
-> Add editform exception handler for validating input data
Change-Id: I0319b0375f1bd90f5122c34a5ada86d454851983
Signed-off-by: Minji Park <minjii.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/505
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
Sachin Agrawal [Mon, 16 Feb 2015 06:19:03 +0000 (22:19 -0800)]
Bug Fix in earlier rehandhsake implementation
Identified a corner case in earlier rehandshake implementation where if
no data transfer takes place between client and Server before re-handshake
is issued, re-handshake process was failing. DTLS state machine does not
update it's state at Server until the first data packet was received from
client. Updated logic to detect for 're-handshake' situation when epoch
mis-match happens. Also updated dtls-client test app to conveniently test
the feature. Use 'client:rehandshake' command for testing.
Change-Id: Idfaad7d477508603c35ad7948ca7c8f05e3228d0
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/349
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Ossama Othman [Thu, 12 Mar 2015 21:54:43 +0000 (14:54 -0700)]
Do not bother with C++11 check on C SDK-only platforms.
Some IoTivity platforms, such as Arduino, only require the C SDK. Do
not bother running the C++11 flag check for those platforms. This
also addresses a problem where Arduino 1.0.x builds would erroneously
fail due to lack of C++11 support.
Change-Id: I1782a258837850adb65e7219254fdeee259a3cc7
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/469
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Caiwen Zhang [Tue, 3 Mar 2015 07:13:20 +0000 (15:13 +0800)]
Update scons build readme and howto document
Change-Id: I3a9e7dd82ad98f969449da42acadfad2e0eb4705
Signed-off-by: Caiwen Zhang<caiwen.zhang@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/432
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
HyunJun Kim [Thu, 12 Mar 2015 02:16:03 +0000 (11:16 +0900)]
Add freature of Scheduled Group Action.
We provide function of Scheduled Group Action.
It will send some action message
when preset time is expired.
And we need some function about the time.
These function will use for checking time.
Change-Id: Ib42941db257cd481be4ed6b7f1a8c1b28ff3809e
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/436
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Minchul Lee [Tue, 24 Feb 2015 10:23:26 +0000 (19:23 +0900)]
Add tizen build option for ARM Cortex-A
Change-Id: I52b86e5353b51a3c78973b59679c2ed84a4a5e11
Signed-off-by: Minchul Lee <slotus.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/406
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Phil Coval <philippe.coval.pro@gmail.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Ossama Othman [Mon, 9 Mar 2015 23:35:07 +0000 (16:35 -0700)]
Do not hardcode path separators in build paths.
It is conceivable that iotivity may be built on platforms where '/'
is not a suitable directory separator. When constructing paths use
Python's os.path.join() function instead of constructing paths by
concatenating strings with '/' in them.
Change-Id: I7c435bd454339f4df9a8e41250e705aa98a6d09f
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/456
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Jon A. Cruz [Sun, 8 Mar 2015 06:49:25 +0000 (22:49 -0800)]
Fixed DLOPEN define warning.
Unconditionally defining DLOPEN_POSIX for cpluff was causing redefinintion errors once
it started being passed in on the command-line. Added conditional guards to prevent the
warnings.
Change-Id: Ieb40909b77710fa46209465e4e924569059738c5
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/451
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Ossama Othman [Mon, 9 Mar 2015 23:50:35 +0000 (16:50 -0700)]
Updated external library paths to be ignored by git.
The downloaded cereal library is now placed in extlibs/cereal/cereal.
Updated the '.gitignore' file, accordingly. Without this change in
place, changes to extlibs/cereal/SConscript would be incorrectly
ignored.
Lastly, ignore all downloaded and unpacked expat library files and
directories.
Change-Id: Ic2a211bd421d25e92449427c64d096e785d6282e
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/457
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Jon A. Cruz [Tue, 10 Mar 2015 02:17:53 +0000 (19:17 -0700)]
Corrected OCException that had gotten out of sync with OCStackResult.
Corrected the OCException class that had gotten out of sync with
new value added to OCStackResult and was resulting in warnings and
inproper messages.
Change-Id: I2bbc3044d89aee00018593cadc7ddee56f7b8b61
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/459
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Jon A. Cruz [Fri, 6 Mar 2015 00:44:03 +0000 (16:44 -0800)]
Corrected @file tags and restored 'Files' section.
* Corrected @file tags that were inadvertently broken which left their
comments falling to the next item to be documented.
* Removed unnecessary '@brief' tags and explicit filenames. The latter are
only required when the @file is targeting a source other than the one it
is present in.
* Unified formatting of @file doc comment blocks.
* Added 'Files' section back to generated docs.
Change-Id: I7f3fbc3cecf5a922c9f8a98d673bc91a18be8847
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/449
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: William Dieter <william.r.dieter@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Caiwen Zhang [Mon, 2 Mar 2015 09:09:04 +0000 (17:09 +0800)]
Using gnustl_shared library instead of gnustl_static
As iotiviy includes more than one library should use gnustl_shared
library instead of gnustl_static library
Change-Id: I3d35e1b482ee8c5b7cca77ac735005bd62e630d6
Signed-off-by: Caiwen Zhang<caiwen.zhang@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/425
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Patrick C Lankswert [Tue, 17 Feb 2015 18:35:44 +0000 (13:35 -0500)]
Added Arduino Mega w/WiFi build to auto build process.
Seung-Woo Lee found a problem with the build for Arduino Mega w/WiFi.
As a result, I am adding this to the build machine list to prevent
regression in the future.
Change-Id: Icdc9fd0ffd911c1bc9c1878f17ebb86010f2c2e1
Signed-off-by: Patrick Lankswert <patrick.lankswert@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/359
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
William Dieter [Fri, 27 Feb 2015 04:58:06 +0000 (23:58 -0500)]
Removed Doxygen warnings caused by improper formatting of several headers
OCResource.h and OCPlatform.h had a number of methods where improperly
documented. They had:
* Incorrect parameter names for a several methods,
* Missing documentation for overloaded methods,
* Where only one overload was documented, often the documentation was
attached to the wrong overloaded method,
* Improper capitalization, and
* Formatting that impairs readability of Doxygen HTML documentation.
This commit addresses those issues.
Change-Id: I4536964afe91f4278810fe2d71f0cf74cf7a78b7
Signed-off-by: William Dieter <william.r.dieter@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/417
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Jon A. Cruz [Thu, 5 Mar 2015 06:15:11 +0000 (22:15 -0800)]
Updated Doxygen config.
Removed deprecated items. Enabled Javadoc style auto-brief. Fixed tab settings.
Change-Id: Ia002ccdc9ce86de6c36c8aeb5fd3b6d7c70f5864
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/440
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: William Dieter <william.r.dieter@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Younghyun Joo [Mon, 2 Mar 2015 10:10:29 +0000 (19:10 +0900)]
[PPM] Modify Protocol Plugin Manager for Android platform
1. Modify FelixAdapter for android support
2. Modify PluginManagerImpl to use FelixAdapter
Change-Id: I14481ddd75913e3eeddef00febd1e8f1c2476aef
Signed-off-by: Younghyun Joo <yh_.joo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/423
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: yunhee.hwang <yunhee.hwang@samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Sachin Agrawal [Thu, 26 Feb 2015 17:28:56 +0000 (09:28 -0800)]
Updated tinyDTLS test apps to use identity hint
dtls-server test is updated to pass 'psk hint' to tinyDTLS library so that
it can send ServerKeyExchange packet. Similarly, dtls-client test
is updated to retrieve PSK specific for the server whose identity was
received via 'psk hint' packet.
Change-Id: Ifba720f1505ed6afbf56dfc179d98790176ce0b0
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/348
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Seung-Woo Lee <sw0524.lee@samsung.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Caiwen Zhang [Tue, 10 Feb 2015 09:10:27 +0000 (17:10 +0800)]
Check if C/C++ compiler is installed
If C/C++ compiler isn't installed, notify user to install it.
Change-Id: I58ad124139a2b454dcd8100b14d5ed23a8065144
Signed-off-by: Caiwen Zhang<caiwen.zhang@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/322
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
William Dieter [Fri, 27 Feb 2015 15:11:38 +0000 (15:11 +0000)]
Removed unneeded references to oic-utilities
The oic-utilities repo was used as a temporary solution for holding third
party libraries. The build system now has a better way to handle them.
This commit removes obsolete instructions to copy the oic-utilities repo
from the scons build instructions.
The resource/csdk/README.txt file still has a reference to oic-utilties,
as do some of the old release notes files. The csdk README can probably
be deleted when makefiles are eliminated.
Change-Id: Ic5824264835359a59cfd79443ce4e773205eeb07
Signed-off-by: William Dieter <william.r.dieter@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/420
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Caiwen Zhang <caiwen.zhang@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Ossama Othman [Mon, 23 Feb 2015 18:45:26 +0000 (10:45 -0800)]
Do not explicitly add "-fPIC" to the compiler command line.
There is no need to explicitly add "-fPIC" to the compiler command
line since the SCons SharedLibary builder will automatically add it.
This change also addresses a problem where position independent code
was unnecessarily and incorrectly generated for static libraries.
IoTivity resource related static libraries are now smaller and code is
more efficient as result of removing "-fPIC" from static library
generation since the indirection that accompanies position independent
code no longer exists (for those static libraries).
Change-Id: I6cf57713d97b62f873ded4f4728fbb5e77e28ca6
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/399
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Caiwen Zhang <caiwen.zhang@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Ossama Othman [Mon, 23 Feb 2015 18:34:20 +0000 (10:34 -0800)]
Reorder library link order for mqttclient to address link error.
An unresolved symbol error for pthread_create() occurred during the
Linux mqttclient sample app link phase. Move the pthread library to
end of the linker command line so that the missing symbol can be
resolved for libraries that depend on it.
Generally, libraries that depend on specific libraries should appear
earlier in the linker command line. For example, if libfoo depends on
libpthread, the library command line should look something like:
g++ bar.c -lfoo -lpthread
This doesn't matter as much for dynamically linked libraries since the
inter-library dependency is embedded into the shared library itself,
but order does matter when statically linking.
Change-Id: I6ac40dde39930501458e16624052ab934503e27f
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/398
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Minji Park [Fri, 27 Feb 2015 05:58:00 +0000 (14:58 +0900)]
[SSM] Fix IOT-332, 333, 334 issues
Modify SSM java Interface and Android sample app
1. Fix IOT 332, unregister queries continuously
2. Fix IOT 333, handling exception when registering an empty query
3. Fix IOT 334, handling exception when registering invalid queries
Change-Id: Ie4bb94c19634c18f6484313de16a49c1ac5f46d1
Signed-off-by: Minji Park <minjii.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/418
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jk13 [Fri, 27 Feb 2015 01:21:38 +0000 (10:21 +0900)]
[SSM] Fix IOT-322, 323 issues
1. Fix IOT 322, duplicated callback if query contains
multiple 'and' operation to one resource
2. Fix IOT 323, init-term exceptional case
Change-Id: If78af1060c905c52c36aa6cdbf01af1f8a11db73
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/416
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Younghyun Joo [Mon, 23 Feb 2015 09:38:23 +0000 (18:38 +0900)]
[PPM] Set the Iotivity Code Format
1. Excute the format script
Change-Id: I2aa09fcec6a4641dea44fbffbd6692e0deadf86a
Signed-off-by: Younghyun Joo <yh_.joo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/397
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: yunhee.hwang <yunhee.hwang@samsung.com>
William R. Dieter [Wed, 25 Feb 2015 03:38:03 +0000 (22:38 -0500)]
Removed non-existent files from Doxyfile to reduce number of warnings
The files removed from the Doxyfile do not exist in the repo. I have
removed them to remove warnings that they do not exist.
Change-Id: I7d8eb26c69426ad1595c42f4bbd27f3f897d3095
Signed-off-by: William R. Dieter <william.r.dieter@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/408
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Randeep Singh [Fri, 13 Feb 2015 06:07:54 +0000 (15:07 +0900)]
Replaced tinyDTLS ecc with micro-ecc
Please refer https://github.com/kmackay/micro-ecc with
version
98e1f208cfde43f65b6263dde6fca1a194bb6543 for
micro-ecc source code used in this implementation.
Change-Id: Icacd21ff24a7afce524bf4b0f4b3429541161269
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/340
Reviewed-by: Seung-Woo Lee <sw0524.lee@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Randeep Singh [Fri, 13 Feb 2015 05:34:27 +0000 (14:34 +0900)]
Modified Rijndeal for Arduino Mega2560
pre-computed values are stored in flash in case of Arduino to overcome Arduino Mega 2560's SRAM limitation
Change-Id: I05de1c47d8d8288be0f1c3cff8a870d15a5df411
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/339
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Seung-Woo Lee <sw0524.lee@samsung.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Erich Keane [Tue, 10 Feb 2015 01:29:14 +0000 (17:29 -0800)]
Clean up TODOs in OCUtilities
The Escape String mechanism is no longer used anywhere, so it is
dead code. The QueryParam parsing was only used in 1 place and the
initial non 'temp patch' function was all dead code. This fix removes
both sets of dead code and cleans up the temp-patch code to be a little
more efficient.
Change-Id: I0777f5d5795362195e35bdffc82a6eed55850a91
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/320
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Younghyun Joo [Mon, 23 Feb 2015 05:27:14 +0000 (14:27 +0900)]
[PPM] Fix sample plugins and sample app for Linux
1. Modify sample plugins for Linux: mqtt-fan, mqtt-light
2. Modify sample app for Linux
Change-Id: I6bb156b9288ce13ba98ec3b3b02a084f4fcf5919
Signed-off-by: Younghyun Joo <yh_.joo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/395
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: yunhee.hwang <yunhee.hwang@samsung.com>
William Dieter [Tue, 17 Feb 2015 04:52:13 +0000 (23:52 -0500)]
Added resource/include/OCRepresentation.h to Doxyfile
OCRepresentation is passed as a paramter to documented API calls, so
presumably, it should be part of the public, documented API.
Change-Id: Ia17813b8ade749d0446d1ed4068f7e49d60d6ec4
Signed-off-by: William Dieter <william.r.dieter@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/351
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
William Dieter [Tue, 17 Feb 2015 06:45:00 +0000 (01:45 -0500)]
Guard against spurious wakeups in devicediscoveryserver.cpp
Like most condition variable implementations, std::condition_variable may
wake up spuriously, even though it is not signalled (see
http://en.cppreference.com/w/cpp/thread/condition_variable/wait). Since
the intention of blocking on the std::condition_variable in main is to
wait forever, add a loop to block again after spurious wakeups.
Change-Id: I97e89a1ec95d6ba65eeb7daff861ee0a65d03a7e
Signed-off-by: William Dieter <william.r.dieter@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/357
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
William Dieter [Tue, 17 Feb 2015 05:41:32 +0000 (00:41 -0500)]
Guard against spurious wakeups in devicediscoveryclient.cpp
Like most condition variable implementations, std::condition_variable may
wake up spuriously, even though it is not signalled (see
http://en.cppreference.com/w/cpp/thread/condition_variable/wait). Since
the intention of blocking on the std::condition_variable in main is to
wait forever, add a loop to block again after spurious wakeups.
Change-Id: I19b7ee13650b9b80250f935e2099119611fa61b3
Signed-off-by: William Dieter <william.r.dieter@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/355
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
William Dieter [Tue, 17 Feb 2015 05:34:52 +0000 (00:34 -0500)]
Added documentation for OCRepresentation::getValue
Change-Id: I832fa198bfc3e3fe633531c3bf67d0c1421b47da
Signed-off-by: William Dieter <william.r.dieter@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/353
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Ossama [Thu, 22 Jan 2015 05:49:16 +0000 (21:49 -0800)]
Automatically detect C++11 flags for supported compilers.
This patch set allows the required C++11 command line flags to
be automatically set earlier in the build process. Currently
only gcc is supported, but adding support for other compilers
is straightforward. Furthermore, changes are for the most part
isolated to the new `iotivityconfig' python package. There should
be no need to update SConscript files found throughout the
iotivity source tree.
Change-Id: I4ba0f6712e4a56a1a97630e511e9aabfdcd9e349
Signed-off-by: Ossama <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/240
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Patrick C Lankswert [Fri, 13 Feb 2015 20:46:40 +0000 (15:46 -0500)]
Formalized the Arduino builds' generation of linker maps
Change-Id: If832e3e94de96c0b14b2c49c302dd21d1736ccbf
Signed-off-by: Patrick Lankswert <patrick.lankswert@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/344
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Seung-woo Lee [Fri, 13 Feb 2015 03:45:52 +0000 (12:45 +0900)]
Fix build error of SimpleClientServer for Wifi
Due to absence of "Wifi" macro definition, a build error
appears for arduino with argument of "NET=Wifi"
Change-Id: Ie5acd09b0d54ed8af165f48302fa351182c679e3
Signed-off-by: Seung-woo Lee <sw0524.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/337
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
William Dieter [Tue, 17 Feb 2015 04:53:35 +0000 (23:53 -0500)]
Updated Doxygen @param for OCResourceResponse::setResourceRepresentation
The parameter was updated in a previous commit without updating the
Doxygen comments.
Change-Id: Ia6fc35d7a7ad8c6fd8a0d076aa21915813fe2820
Signed-off-by: William Dieter <william.r.dieter@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/352
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
jk13 [Fri, 9 Jan 2015 07:14:17 +0000 (16:14 +0900)]
[SSM] Modify ommited arduino sample and soft sensor sample
1. Modify Arduino indoor trajectory reference sensor
2. Modify indoor trajectory soft sensor for tizen
Change-Id: If83113c4564d894c8d740ecc357999acabc29f46
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/109
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jk13 [Mon, 16 Feb 2015 03:50:01 +0000 (12:50 +0900)]
[SSM] Fix console sample
1. Fix sample application while reading query string from console
Change-Id: I90076ad0711ce165293a4db159e5796f1b7c93ee
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/347
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jk13 [Fri, 13 Feb 2015 00:25:04 +0000 (09:25 +0900)]
[SSM] Fix Tizen sample and soft sensor declaration
1. Fix Tizen sample to load description and so from specific location
2. Fix Soft Sensor declaration to support which built under Tizen IDE
Change-Id: I73bdc793c5b1b6e100e9af36aca9503be9522b3e
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/335
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
HyunJun Kim [Thu, 12 Feb 2015 07:09:59 +0000 (16:09 +0900)]
Fix runtime error of ThingsManager API.
Some API and examples show runtime errors.
So we fixed runtime errors and issues.
Fix [IOT-324], [IOT-326], [IOT-336], [IOT-337]
Change-Id: I0f71b3a2243e4856203140aae71db473f4fa32ad
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/330
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Seung-woo Lee [Wed, 11 Feb 2015 07:21:20 +0000 (16:21 +0900)]
Fix missing of 'TB_LOG' in SConscript of ocserver
The defining of 'TB_LOG' is missing when building ocserver
for debug. It results in no serial output because log macro
functions like OC_LOG_INIT were redefined as nothing
Change-Id: I25881d16a2a7fefb17dd79c4349353c9befede77
Signed-off-by: Seung-woo Lee <sw0524.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/324
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Caiwen Zhang <caiwen.zhang@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Caiwen Zhang [Thu, 12 Feb 2015 02:31:49 +0000 (10:31 +0800)]
Improve external library management error handling
Change-Id: I2a0b7003f0bd2987fa101285977fa0621688017b
Signed-off-by: Caiwen Zhang<caiwen.zhang@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/327
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Caiwen Zhang [Thu, 12 Feb 2015 05:30:43 +0000 (13:30 +0800)]
Add auto download cereal library support
Change-Id: Iab0fe5ca9c64849d215dfcf1ec99a4f834cb26f8
Signed-off-by: Caiwen Zhang<caiwen.zhang@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/328
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Erich Keane [Wed, 7 Jan 2015 21:09:55 +0000 (13:09 -0800)]
Implement [] and iteration for OCRepresentation
Multiple requests have come in to be able to access the contents
of OCRepresentation in an easier to use manner. This fix allows
OCRepresentation to be indexed using the [] operator and also
be iterated in an STL compliant fashion.
Additionally, this adds more than 40 tests for this functionality
Change-Id: Ibfc4bc61493324e118c4a6b67efc1d66e8b66b04
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/116
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
HyunJun Kim [Mon, 9 Feb 2015 08:09:45 +0000 (17:09 +0900)]
Improve usability of Group Interface API.
GetActionSetFromString function has memory leak.
So we fix memory leak and improve usability of the function.
We call two function, ExtractKeyValueFromRequest and BuildActionSetFromString
to extract key and value from requset and get ActionSet object from string.
Fix [IOT-283]
Change-Id: Ie13dcd0afc168632d9a53ad27182d15a55c3aca0
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/308
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Erich Keane [Mon, 9 Feb 2015 17:59:48 +0000 (09:59 -0800)]
Added comment to the OCRepresentation fix
A build issue is seemingly causing a crash for the Android API
implementation, so the constructors/destructors were all placed
in the .h file. This commit adds a comment explaining that to the
OCRepresentation code.
Change-Id: I22d0e2a374ea82165d0d7914ebfd2748b5f59c60
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/318
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Caiwen Zhang [Tue, 3 Feb 2015 09:01:51 +0000 (17:01 +0800)]
Add external package management support
Some methods are added to manage external packages:
'PrepareLib': checks the existence of an external library, if it
doesn't exist, calls the script user provided to download(if required)
and build the source code of the external library or notify user to
install the library.
'Download': download package from specify URL
'UnpackAll': unpack the package
'Configure': execute specify script(configure, bootstrap etc)
'InstallHeadFile': install head files
'InstallLib': install library binaries(.so, .a etc)
Change-Id: Ibf3ef58abf8ba5a466b82a341bb6dce83d61726e
Signed-off-by: Caiwen Zhang<caiwen.zhang@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/138
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Patrick C Lankswert [Mon, 2 Feb 2015 15:50:39 +0000 (10:50 -0500)]
Add missing LICENSE and NOTICE file to repository.
Change-Id: Ib47076ee53884cb4bd87cc822dff0437ca1deb9e
Signed-off-by: Patrick Lankswert <patrick.lankswert@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/283
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-by: Fred Cooper <fred.cooper@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
jk13 [Fri, 6 Feb 2015 05:34:40 +0000 (14:34 +0900)]
[SSM] Upload Tizen sample for 2.3 public sdk IDE
1. Change existing Tizen gbs sample app
to using Tizen 2.3_rev1 IDE env
Change-Id: I12977bcd4de66d925f6e98f5382f1227d218c72c
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/313
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Erich Keane [Wed, 4 Feb 2015 20:08:26 +0000 (12:08 -0800)]
Adding OCRep destructor, various move activities
Apparently OCRepresentation's destructor was causing issues
in the JNI version. Seemingly adding a virtual destructor to
the OCRepresentation is enough to cause this to go away.
Also adding move construction/assignment to our more expensive
types.
Change-Id: Icb3b6f25e268384b51126e18ec55fc5099c9b2f9
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/305
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Minji Park [Fri, 6 Feb 2015 06:07:46 +0000 (15:07 +0900)]
[SSM] Fix SSM Sample App to handle invalid input for app menu (IOT-290)
Modify SSM Linux Sample App to to prevent unexpected input values
Change-Id: Ic9de6e894a44a903f02d60f6eeaf0fa9035e0e5a
Signed-off-by: Minji Park <minjii.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/315
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
jk13 [Fri, 6 Feb 2015 05:38:37 +0000 (14:38 +0900)]
[SSM] Cleanup JNI dead code and add NDEBUG definition
1. Cleanup JNI dead code
2. Add NDEBUG definition to SCONS script to prevent crash
when assert
Change-Id: Ia4dc46548ce3bb0c9b4b28776e6c5f328444ab1a
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/314
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Sudarshan Prasad [Tue, 13 Jan 2015 06:46:14 +0000 (22:46 -0800)]
Added lock logic in findResource callback for C++ samples
As part of Gerrit review #101,(
83fed5a6c6b01d32de3e47c669652a1aa79ebb49)
there were changes required in other samples to prevent a crash in the
findResource callback.
Additionally, made minor correction in groupclient by changing
printf to cout in one of the function
Change-Id: I524f5d862c82011e5d008e686cc1d6e41ac3f170
Signed-Off-by:Sudarshan Prasad<sudarshan.prasad@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/126
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
William Dieter [Thu, 4 Dec 2014 03:35:04 +0000 (22:35 -0500)]
Added Vagrant config files that will create a build VM
As described in the tools/vagrant/README.md, Vagrant can use the
configuration provided in this commit to provision a build VM for building
IoTivity.
Change-Id: Ic2ae5a7bfc9e4274aa76be99a0807517f89c94b8
Signed-off-by: William Dieter <william.r.dieter@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/88
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
jjack.lee [Mon, 26 Jan 2015 04:59:03 +0000 (13:59 +0900)]
Fix problem for multiple api call
It is thread issue. So, add lock mechanism.
Fix [IOT-263]
Change-Id: Ic0fac30b1a4c0c305af607e5caa7c1afd21163b6
Signed-off-by: Jack Lee <jjack.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/243
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Jihun Ha [Tue, 3 Feb 2015 08:12:37 +0000 (17:12 +0900)]
Fix an exception handling issue in con-client app.
Though con-client app do not discover configuration,
diagnostics, and factorySet collection resources in
a network, the con-client app can be proceded.
And even when a response for any GET/PUT request indicates
a bad request, it is correctly delivered to the app.
Reference issue ID : [IOT-291]
Change-Id: Ic101013daa6efea9639295553022fd67f58c925e
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/271
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
HyunJun Kim [Tue, 3 Feb 2015 02:10:55 +0000 (11:10 +0900)]
Fix infinite loop in GroupAction.
Fix infinite loop in FindAndDeleteActionSet function.
So we change the code.
Fix [IOT-282]
Change-Id: I23d3663ea32c5e56a456b013d4c697fcf0f886d2
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/286
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
Erich Keane [Fri, 30 Jan 2015 21:29:49 +0000 (13:29 -0800)]
Altered the .gitignore to properly ignore unittest build biproducts
gitignore wasn't ignoring the gtest install and hippomocks installed
components.
Cleaned whitespace for the unittests makefile, which had tons of
trailing whitespace issues.
Change-Id: I10c4505ddf56df6d34e972553f93531132d53af3
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/280
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: William Dieter <william.r.dieter@intel.com>
Reviewed-by: Yuliya Kamatkova <yuliya.kamatkova@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Sudarshan Prasad [Mon, 2 Feb 2015 02:18:44 +0000 (18:18 -0800)]
Release notes for Feb 1st release
Change-Id: I046922a66eaa03b18482fb139986a439a49f568f
Signed-off-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/282
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
HyunJun Kim [Mon, 2 Feb 2015 05:49:56 +0000 (14:49 +0900)]
Fix API of ThingsManger.
subscribeCollectionPresence and findCandidateResource are occurred exception or
no response(callback) while to combine resource type
when child resource doesn't have correct type name of resource.
In this case we don't combine the type of resource and
we will ignore.
Fix [IOT-289]
Change-Id: I59c48726a9738e34d6c5561b59a2cdda243168ec
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/277
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
jk13 [Fri, 30 Jan 2015 07:53:11 +0000 (16:53 +0900)]
[SSM] Add android sample and fix jni issues.
1. Add android sample application
2. Fix jni issues that mismatch of package name
and Android-L jni callback issue
3. Fix scons script to build for creating SSM so file.
Change-Id: Ief192a96f6d97fd2ac4ad47b3e7d9029d964f2f6
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/278
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
HyunJun Kim [Mon, 26 Jan 2015 08:22:50 +0000 (17:22 +0900)]
Apply the 'CA_INT' of Connectivity Abstraction for Things Manager.
The Thing Manager does not prepare for the CA.
So we provide different function of CA in the same API.
Change-Id: I8b64608e352a19fddedf42beef647003d18e61f8
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/244
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>