platform/upstream/iotivity.git
9 years agoRemoved non-existent files from Doxyfile to reduce number of warnings
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>
9 years agoAdded ability to init with only transports that are compiled-in.
Joseph Morrow [Mon, 23 Feb 2015 21:07:13 +0000 (16:07 -0500)]
Added ability to init with only transports that are compiled-in.

Added algorithm to try to initialize all transports. If a transport
is not currently supported (ie. not compile-in to CA Library) then
we ignore the error.

This fixes Jira Ticket IOT-255 -> "CA Call to CASelectNetwork() fails
with CA_NOT_SUPPORTED when two network types are specified."

Change-Id: I599a4a70fa3f64aa6215997bfbb0e0252437e830
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/326
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoAdded helper function to map CAResult_t types to OCStackResult types.
Joseph Morrow [Mon, 23 Feb 2015 21:01:03 +0000 (16:01 -0500)]
Added helper function to map CAResult_t types to OCStackResult types.

Change-Id: I448b9d4abf416b17b7853cfa4a361a15a5244163
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/377
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoReplaced tinyDTLS ecc with micro-ecc
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>
9 years agoFixing errors reported by Klocwork tool
Sachin Agrawal [Fri, 20 Feb 2015 14:20:56 +0000 (06:20 -0800)]
Fixing errors reported by Klocwork tool

Error Report from Klocwork

1)FUNCRET.GEN: Non-void function does not return value :
 C and C++ : gen_sec_bin.cpp : Critical (1) : Analyze : Local

2)NPD.CHECK.MIGHT: Pointer 'fps' checked for NULL at line 123
 may be dereferenced at line 132. : C and C++ : gen_sec_bin.cpp :
 Critical (1) : Analyze : Local

3)NPD.FUNC.MIGHT: Pointer 'fps' returned from call to function 'fopen'
 at line 123 may be NULL and may be dereferenced at line 132. :
 C and C++ : gen_sec_bin.cpp : Critical (1) : Analyze : Local

4)UNINIT.STACK.ARRAY.MIGHT: 'payload' array elements might be used
 uninitialized in this function. : C and C++ : ocserverbasicops.cpp :
 Critical (1) : Analyze : Local

Change-Id: I970bc060191caf17b102b165bbe5656b079ad063
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/374
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
9 years agoModified Rijndeal for Arduino Mega2560
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>
9 years agoRemove redundant check.
Sanjeev BA [Thu, 5 Feb 2015 02:37:07 +0000 (11:37 +0900)]
Remove redundant check.

Change-Id: Ic431d64964d8eea9fd29571cab33ba16475cfc66
Signed-off-by: Sanjeev BA <as2902.b@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/307
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoClean up TODOs in OCUtilities
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>
9 years agoRetrieve build flags from pkg-config only once.
Ossama Othman [Wed, 18 Feb 2015 21:59:06 +0000 (13:59 -0800)]
Retrieve build flags from pkg-config only once.

The pkg-config command used to retrieve the build flags for several
libraries in Linux, Tizen and Android builds was added to the C and
C++ command line flags as a shell "backtick" expression, e.g.:

  gcc ... `pkg-config glib-2.0 --cflags` ...

That caused pkg-config to be run for each and every source file
compilation command executed by SCons.  Doing so is an expensive
operation since it causes an additional process to be spawned to read
the same flags for each source file being compiled.

Just have SCons read them and merge them to the build environment
once!

Change-Id: I3120aef7929464c033c8dabf6ec0ca88e5b67f89
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/367
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
9 years agoRemoved carriage returns in middle of text and at line endings.
Ossama Othman [Wed, 18 Feb 2015 22:32:23 +0000 (14:32 -0800)]
Removed carriage returns in middle of text and at line endings.

Depending on the editor or viewer, the carriage returns may not
be readily apparent.  To search for them via the command line
something like the following may be used:

  find . -name "*.[ch]" -o -name "*.cpp" | xargs grep -n $'\r' \
    | grep -v extlibs

Change-Id: Ifabf59b1becbd3d8c8cbfa6363c9bc9f5f3ab4e7
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/368
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
9 years ago[PPM] Fix sample plugins and sample app for Linux
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>
9 years agoFix klocwork issues in C samples
Sakthivel Samidurai [Tue, 17 Feb 2015 16:48:23 +0000 (13:48 -0300)]
Fix klocwork issues in C samples

Check "*targetString" pointer before using it.

Change-Id: I47223c9787f5c9855d5850db40da4637265bd2d7
Signed-off-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/361
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoAdded Vagrant config files that will create a build VM
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>
(cherry picked from commit 3b864d1ab9656a2570888b64b8384b406e9212c6)
Reviewed-on: https://gerrit.iotivity.org/gerrit/383
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoUpdated Doxygen @param for OCResourceResponse::setResourceRepresentation
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>
(cherry picked from commit 50ef54a78a90638144db9fe55c1fb97b6196ff9b)
Reviewed-on: https://gerrit.iotivity.org/gerrit/356
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoGuard against spurious wakeups in devicediscoveryclient.cpp
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>
(cherry picked from commit 73b122b0590bc350c1a451d7d05db86e3f0121d3)
Reviewed-on: https://gerrit.iotivity.org/gerrit/392

9 years agoGuard against spurious wakeups in devicediscoveryserver.cpp
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>
(cherry picked from commit 5df6036cde74bf174d9d61b618d81f8d7034d6c4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/391

9 years agoAdded resource/include/OCRepresentation.h to Doxyfile
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>
(cherry picked from commit 9dcf248ecb99d3eb18fea0ca445818329f7d4e1e)
Reviewed-on: https://gerrit.iotivity.org/gerrit/393

9 years ago[SSM] Fix console sample
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>
(cherry picked from commit 5d2e8e333eb30d38e636d329f03dda36a1189d9e)
Reviewed-on: https://gerrit.iotivity.org/gerrit/390
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoFix runtime error of ThingsManager API.
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>
(cherry picked from commit 24b19311190ac247aee64809064f63c5c796384a)
Reviewed-on: https://gerrit.iotivity.org/gerrit/389
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoImprove usability of Group Interface API.
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>
(cherry picked from commit 061a9bc4c0ef896016ea94ebf17c18c55a28e799)
Reviewed-on: https://gerrit.iotivity.org/gerrit/387
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoImprove external library management error handling
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>
(cherry picked from commit c824277b602590f2f4af8b553106b6913e62fad2)
Reviewed-on: https://gerrit.iotivity.org/gerrit/388
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoAdd missing LICENSE and NOTICE file to repository.
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>
(cherry picked from commit a02e3f263c942496b5e1e05fb1d523b77d9e8500)
Reviewed-on: https://gerrit.iotivity.org/gerrit/386
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoAdding OCRep destructor, various move activities
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>
(cherry picked from commit b7a33ba1905fcef02c21532a944ddc0958a121af)
Reviewed-on: https://gerrit.iotivity.org/gerrit/385
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years ago[SSM] Fix SSM Sample App to handle invalid input for app menu (IOT-290)
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>
(cherry picked from commit d37ac7328d1f6bf0fc8da65aac9af8b0edcdd904)
Reviewed-on: https://gerrit.iotivity.org/gerrit/384
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoFix problem for multiple api call
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>
(cherry picked from commit 522c05e82f1ccd3ae2cf4b4a63ec414f7ebcb8ce)
Reviewed-on: https://gerrit.iotivity.org/gerrit/381
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoFix infinite loop in GroupAction.
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>
(cherry picked from commit 6a8ad4c43926df7541b414452ed57dbc9761137a)
Reviewed-on: https://gerrit.iotivity.org/gerrit/380
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoRelease notes for Feb 1st release
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>
(cherry picked from commit 0d8fae69e903dffdd90ad2e8ff5a7cd58afb78da)
Reviewed-on: https://gerrit.iotivity.org/gerrit/379

9 years agoAdd API description of Things Manager.
HyunJun Kim [Thu, 29 Jan 2015 04:38:08 +0000 (13:38 +0900)]
Add API description of Things Manager.

joinGroup and findGroup function call were ambiguous
when join to a local(or remote) resource.
We provide more detail description of function for the user.

Fix [IOT-265],[IOT-267]

Change-Id: I43de1f6671dc73d0725bdc9c0e85ffca45878d2e
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/245
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit a3c86a7a2d2fce37f68fd3cf738500e17480cbbe)
Reviewed-on: https://gerrit.iotivity.org/gerrit/378
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoFix GroupSync API of about GroupSync of Group feature.
HyunJun Kim [Fri, 23 Jan 2015 04:15:09 +0000 (13:15 +0900)]
Fix GroupSync API of about GroupSync of Group feature.

Crash is occured when som api of ThingsManager is called multiple times.

Fix [IOT-261], [IOT-264], [IOT-268]

Change-Id: Iec1cb11c570357411351c69450ace91ea6fa3754
Signed-off-by: HyunJun Kim <hyunjun2.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/228
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 135e8386212533f4c62e892f0695c78d945f2879)
Reviewed-on: https://gerrit.iotivity.org/gerrit/375
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years ago[SSM] Fix issue about initializing SSM with invalid parameter (IOT-260)
Minji Park [Fri, 23 Jan 2015 02:05:32 +0000 (11:05 +0900)]
[SSM] Fix issue about initializing SSM with invalid parameter (IOT-260)

Modify SoftSensorManager to return error code when initialized with invalid parameter

Change-Id: Ia0a54cd6e71321cbe2b4fd18352a2a609c20fabd
Signed-off-by: Minji Park <minjii.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/229
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit ef380650f9c35120091c36b44c974c3d3712e91d)
Reviewed-on: https://gerrit.iotivity.org/gerrit/376
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoRemoved ocsocket
Sachin Agrawal [Thu, 19 Feb 2015 18:01:30 +0000 (10:01 -0800)]
Removed ocsocket

Removed obsolete ocsocket layer.
Moved OCDevAddr and helper functions to ocstack.
Note: OCDevAddr should be replaced in future (after CA merge).

Change-Id: I289232e12178fdc0c6ab1c5eeddc98c2f5e37531
Signed-off-by: Yuliya Kamatkova <yuliya.kamatkova@intel.com>
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/334
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-by: Habteab Yemane <habteab.l.yemane@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoAdded safety checks requested in code review.
Joseph Morrow [Thu, 19 Feb 2015 20:26:10 +0000 (15:26 -0500)]
Added safety checks requested in code review.

The requests can be found here:https://gerrit.iotivity.org/gerrit/#/c/363.

Change-Id: Ied1f370c7f836f22d2a3e5e00150bc974a7d35b7
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/366
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoReplaces SID related c++ code with c code
Shilpa Sodani [Tue, 3 Feb 2015 23:06:19 +0000 (15:06 -0800)]
Replaces SID related c++ code with c code

Parse payload with cJSON parser
Replace c++ set & pair data structure with c linklist
Demonstrate GET/PUT/POST on the resource in the resource list
Cleanup OC_LOG_V output
Collects all the resources present in  the clientResponse

Change-Id: Ib7e2047d25e0b2c805bae79b4246c1bbdbde8d8e
Signed-off-by: Shilpa Sodani <shilpa.a.sodani@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/297
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Tested-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoFix klocwork issue in c stack
Sakthivel Samidurai [Tue, 17 Feb 2015 16:56:55 +0000 (13:56 -0300)]
Fix klocwork issue in c stack

Initialize grpEnd variable before using it.

Change-Id: I08f769545b0693af7bf775d34fbc427b1044af02
Signed-off-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/362
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoFix C/C++ samples interoperability
Mandeep Shetty [Fri, 13 Feb 2015 22:38:27 +0000 (14:38 -0800)]
Fix C/C++ samples interoperability

This fixes IOT-130

Made the "state" of light resource consistent across samples to be true/false instead of "on"/"off".
Fixed JSON payload parsing in occserver to fix seg fault on PUT request.

Change-Id: I4983c7ec20a274d0ae24f013cd7b7ec95c5815a6
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/345
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoAdded resource/include/OCRepresentation.h to Doxyfile
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>
9 years agoGuard against spurious wakeups in devicediscoveryserver.cpp
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>
9 years agoGuard against spurious wakeups in devicediscoveryclient.cpp
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>
9 years agoAdded documentation for OCRepresentation::getValue
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>
9 years agoRemoved obsolete OC_WELL_KNOWN_PORT
Yuliya Kamatkova [Tue, 17 Feb 2015 18:46:28 +0000 (13:46 -0500)]
Removed obsolete OC_WELL_KNOWN_PORT

Removed obsolete OC_WELL_KNOWN_PORT that was causing warnings.

Change-Id: I40034334e723b817818f80d9fedd60ed6ebcaf3a
Signed-off-by: Yuliya Kamatkova <yuliya.kamatkova@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/360
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoFix memory leak when returning from method on error.
Joseph Morrow [Wed, 18 Feb 2015 00:06:52 +0000 (19:06 -0500)]
Fix memory leak when returning from method on error.

In ocstack.c, there was a method that could potentially malloc and then
return on error. I cleaned up this case. This fixes Rally TA5188.

Change-Id: I0ccd5259806c4e37b2ac73162f7ea0a7381fe4e7
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/363
Reviewed-by: Erich Keane <erich.keane@intel.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoAutomatically detect C++11 flags for supported compilers.
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>
9 years agoFixed incorrect concatenation of responses.
Doug Hudson [Thu, 12 Feb 2015 15:25:40 +0000 (10:25 -0500)]
Fixed incorrect concatenation of responses.

As part of this work, a bug was fixed in the function HandleAggregateResponse where
responses were not being concatenated correctly.
This fixes a ToDo-CA task (TA4298).

Change-Id: I981947c2d64759d1850e093ecf5c069bc8c9106a
Signed-off-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/333
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Yamin Al-Mousa <yamin.s.al-mousa@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
9 years agoCreated SConscripts for the C and C++ unit tests.
Doug Hudson [Fri, 13 Feb 2015 23:19:57 +0000 (18:19 -0500)]
Created SConscripts for the C and C++ unit tests.

This change included making mods to <src_dir>/resource/SConscript to:

-call the C and C++ unit test SConscripts

-ensure that the Google Unit Test library and Hippo Mocking
library were installed in <src_dir>/extlibs.

Also made a mod to ocstack.c/OCInit( ) to check for invalid mode parameter
and to stacktests.cpp to change OCDoResource signature for CA.

Change-Id: I290d04a876de8c99076e71827d91b5216ffaf29e
Signed-off-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/292
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
9 years agoFix C samples format and style
Sakthivel Samidurai [Thu, 12 Feb 2015 19:23:29 +0000 (16:23 -0300)]
Fix  C samples format and style

Fix lines that exceed 100 characters limit and format style.

Change-Id: I86ac0fc29ae037034da6f643934484bce93fc52f
Signed-off-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/336
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoFormalized the Arduino builds' generation of linker maps
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>
9 years agoFix build error of SimpleClientServer for Wifi
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>
9 years agoRepaired a number of issues discovered while doing a code-review
Erich Keane [Fri, 13 Feb 2015 23:03:33 +0000 (15:03 -0800)]
Repaired a number of issues discovered while doing a code-review

I was poking through a general code review/testing out a SCA tool
and came up with/discovered a handful of potential bug-filled code.

In a few locations we were referring to a variable BEFORE testing for
validity which has some pretty nasty concequences.  I replaced usages
of strtok with strtok_r in a few places I came across it.  The IP
parsing code was a bit convoluted and unnecessary, so I made it more
clear.

Change-Id: If1157ca33d2fe176a4beac9b3e4b8a8090357751
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/346
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
9 years agoUpdated Doxygen @param for OCResourceResponse::setResourceRepresentation
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>
9 years ago[SSM] Modify ommited arduino sample and soft sensor sample
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>
9 years ago[SSM] Fix console sample
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>
9 years agoFixed missing public API comments
Sudarshan Prasad [Fri, 13 Feb 2015 17:53:08 +0000 (09:53 -0800)]
Fixed missing public API comments

Additionally, aligned the comments properly.

Change-Id: I0eba40dcfe76062ba20e560084225f3ccf177271
Signed-off-by:Sudarshan Prasad <sudarshan.prasad@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/341
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>
9 years agoImplement [] and iteration for OCRepresentation
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>
(cherry picked from commit 529bb98b884ca4db27b7659f966075a8680fa3c3)
Reviewed-on: https://gerrit.iotivity.org/gerrit/325
Tested-by: Sashi Penta <sashi.kumar.penta@intel.com>
9 years agoRemoved unused variables
Sudarshan Prasad [Fri, 13 Feb 2015 18:28:00 +0000 (10:28 -0800)]
Removed unused variables

This will prevent couple of warnings.

Change-Id: Iaae6d5a36c4ee91dee07346572ec7bde0961158c
Signed-off-by:Sudarshan Prasad <sudarshan.prasad@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/343
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>
9 years ago[SSM] Fix Tizen sample and soft sensor declaration
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>
9 years agoFix runtime error of ThingsManager API.
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>
9 years agoFix missing of 'TB_LOG' in SConscript of ocserver
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>
9 years agoImprove external library management error handling
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>
9 years agoAdd auto download cereal library support
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>
9 years agoFixed sample when command line argument exceeds 3
Shilpa Sodani [Wed, 4 Feb 2015 23:11:09 +0000 (15:11 -0800)]
Fixed sample when command line argument exceeds 3

Fix IOT Bug 306. Updated simpleclient to exit and display help
message when command line arguments exceeds 3

Change-Id: I06d0692f9ee34f3fe8f2b0d08005770983838028
Signed-off-by: Shilpa Sodani <shilpa.a.sodani@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/306
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-by: Yuliya Kamatkova <yuliya.kamatkova@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Tested-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoRemoved libcoap and occoap
Yuliya Kamatkova [Fri, 6 Feb 2015 21:33:59 +0000 (16:33 -0500)]
Removed libcoap and occoap

Libcoap and occoap were removed from RI layer because
libcoap was moved under connectivity abstraction layer.

Change-Id: Id10467a4f45de52a89b2a8113bd0f5981c542015
Signed-off-by: Yuliya Kamatkova <yuliya.kamatkova@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/317
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>
Tested-by: Sashi Penta <sashi.kumar.penta@intel.com>
9 years agoImplement [] and iteration for OCRepresentation
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>
9 years agoImprove usability of Group Interface API.
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>
9 years agoRemoved OCGetInterfaceAddress
Yuliya Kamatkova [Mon, 9 Feb 2015 19:53:42 +0000 (14:53 -0500)]
Removed OCGetInterfaceAddress

Removed obsolete OCGetInterfaceAddress and
cleaned up C Samples.

Note: OCSocket will eventually be completely removed
but not in this commit (due to dependencies)

Change-Id: Ie5af18518102be8595973fd1ff1d7dc4fdfd4007
Signed-off-by: Yuliya Kamatkova <yuliya.kamatkova@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/319
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
9 years agoUpdated security config blob for extensibility
Sachin Agrawal [Mon, 2 Feb 2015 20:26:18 +0000 (12:26 -0800)]
Updated security config blob for extensibility

Until now, security blob could contain only PSK credentials.
New features such as bootstrapping and certificate support would
require us to store different types of blob in configuration blob.
This change is an attempt to extend configuration blob format into
a TLV(Type-Length-Value) format which can be useful for multiple
purposes.

Change-Id: Icbc3d07ccae59579420276dbf5376f939c9bf7a4
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/242
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoAdded comment to the OCRepresentation fix
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>
9 years agoAdd external package management support
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>
9 years agoAdd missing LICENSE and NOTICE file to repository.
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>
9 years ago[SSM] Upload Tizen sample for 2.3 public sdk IDE
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>
9 years agoRemoved Cereal from Build Except where necessary
Erich Keane [Tue, 3 Feb 2015 22:47:49 +0000 (14:47 -0800)]
Removed Cereal from Build Except where necessary

Only 3 file compilations (InProcClientWrapper.cpp, OCResourceRequest.cpp,
and OCRepresentation.cpp) actually need the cereal include, so this fix
removes it from everywhere else.  This will result in faster compile times.

Change-Id: I8f9c7b6c3991089189fe85fd8ebff6a9e1e2aa80
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/300
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
9 years agoAdding OCRep destructor, various move activities
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>
9 years ago[SSM] Fix SSM Sample App to handle invalid input for app menu (IOT-290)
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>
9 years ago[SSM] Cleanup JNI dead code and add NDEBUG definition
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>
9 years agoFixed make_unique to work with C++14+ compilers
Erich Keane [Tue, 3 Feb 2015 23:05:21 +0000 (15:05 -0800)]
Fixed make_unique to work with C++14+ compilers

Previous solution didn't correctly import the make_unique from
C++14/1z when using the new compiler.  This ensures that OC::make_unique
will always work correctly.

Change-Id: Ibb7456f6375c5c16553bb76c71646ec911190c0f
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/299
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoAdded support in tinyDTLS to support rehandshake
Sachin Agrawal [Wed, 21 Jan 2015 16:55:45 +0000 (08:55 -0800)]
Added support in tinyDTLS to support rehandshake

As per RFC 6347 section 4.2.8, DTLS Server should support requests
from clients who have silently abandoned the existing association
and initiated a new handshake request by sending a ClientHello.
Code is updated to detect this scenario and delete the old
association when client successfully responds to HelloVerifyRequest.

Change-Id: I6e256921215c1a22e9e5013499c4dfd98659f8cc
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/120
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
(cherry picked from commit 6baf3d32af01b99cc56466e51b541a6be3a911f4)
Reviewed-on: https://gerrit.iotivity.org/gerrit/311

9 years agoFixed issue to pass PSK identity hint to application in callback
Sachin Agrawal [Tue, 20 Jan 2015 23:58:45 +0000 (15:58 -0800)]
Fixed issue to pass PSK identity hint to application in callback

In cases (with PSK ciphersuite) where Server is sending
'PSK Identity Hint’ inside ServerKeyExchange message, DTLS library
is not passing the ‘identity hint’ inside ‘desc’ argument in
get_psk_info(DTLS_PSK_KEY, desc) callback. Instead, ‘desc’ contains
the identity of the client itself. The reason for this is that the
code inside dtls_send_client_key_exchange() method
overwrites the ‘identity hint’ received earlier.

Change-Id: Ibf447e3a6b33284118908a52aed4cf636038ab23
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/119
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
(cherry picked from commit 72a92249258601e2ab799628733afcb7c4c9b1e9)
Reviewed-on: https://gerrit.iotivity.org/gerrit/310

9 years agoFix errors on Arduino caused by proper initialization.
Joseph Morrow [Wed, 4 Feb 2015 16:34:35 +0000 (11:34 -0500)]
Fix errors on Arduino caused by proper initialization.

Initializing structs with "{0}" causes errors on Arduino where the
struct's first member is a non-primitive or something that can not be
properly set to "0" without a cast. I re-arranged the structs such that
the first member of the structs are of a primitive type or are typedef'd
as a primitive type.

Change-Id: Ib7ecced34ea85b1a8c9106c34e1d27890a4cf039
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/304
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>
9 years agoAdded lock logic in findResource callback for C++ samples
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>
9 years agoFixed OCLogger enum log levels to be legal
Erich Keane [Tue, 3 Feb 2015 23:22:04 +0000 (15:22 -0800)]
Fixed OCLogger enum log levels to be legal

Double-underscores at the beginning of a token are reserved
for the compiler usage, so these values were removed.  I've also
altered the names a bit to make them look different enough so that
our users don't use them.

Finally, I made sure that they don't actually WORK, so that our
users won't be tempted to use them.

Change-Id: I3ae04ff32f01dfc6e0d89948a3b5b858157de6ab
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/298
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
9 years agoAdded Vagrant config files that will create a build VM
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>
9 years agoRemoved boost program_options from build
Erich Keane [Tue, 3 Feb 2015 22:11:38 +0000 (14:11 -0800)]
Removed boost program_options from build

Program Options were only used for the ocicuc directory, however
that has been removed.  Therefore we don't need to use it to build
anymore.  Additionally, it was not included in any files or used
in any make files.

Change-Id: I12a195b28d549fc1ca86062f9628aca59def4a61
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/301
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ossama Othman <ossama.othman@intel.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
9 years agoClean up the C samples
Sakthivel Samidurai [Mon, 2 Feb 2015 19:59:38 +0000 (16:59 -0300)]
Clean up the C samples

Update the URI in the samples for Unicast discovery and device discovery.

Change-Id: Ice2ec98bb33033743c17f3259e6a86380c0afc0e
Signed-off-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/285
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-by: Yuliya Kamatkova <yuliya.kamatkova@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoFix problem for multiple api call
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>
9 years agoFix an exception handling issue in con-client app.
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>
9 years agoFixed Scons script changes to include CA flags in IoTivity build.
Ashok Channa [Thu, 29 Jan 2015 08:16:26 +0000 (17:16 +0900)]
Fixed Scons script changes to include CA flags in IoTivity build.

Include Linux Scons changes , Tizen scons build script changes.

Change-Id: I4a95f4887b9f4cb1c78d18659fd35fcf13584789
Signed-off-by: Ashok Channa <ashok.channa@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/270
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoRemoved warnings from calls to OC_LOG_BUFFER from within stack.
Joseph Morrow [Tue, 3 Feb 2015 16:26:33 +0000 (11:26 -0500)]
Removed warnings from calls to OC_LOG_BUFFER from within stack.

OC_LOG_BUFFER() expected "const uint8_t*" not "const unsigned char *".

Change-Id: I1e092abaf6af84ad66083c9bcf567d024e64b4d8
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/290
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>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoRemoved extraneous definitions of CA_INT in makefiles and sconscripts.
Joseph Morrow [Tue, 3 Feb 2015 16:28:04 +0000 (11:28 -0500)]
Removed extraneous definitions of CA_INT in makefiles and sconscripts.

These definitions are no longer needed to run the RI layer on the CA
layer.

Change-Id: I9751b4d4d7ab0c35f2a277d4f100910070c976f6
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/291
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoRESET/ACK messages requirement to add additional data from CA .
Ashok Channa [Thu, 29 Jan 2015 06:07:25 +0000 (15:07 +0900)]
RESET/ACK messages requirement to add additional data from CA .

 1) CA layer provide new CAResponseResult_t element to represent empty message.
2) RI can use 'SendResponse' for RESET and ACK(separated response)
with CAResponseResult and CA_Info_t->CAMessageType_t
 3) CA layer will add token information according to the message id of empty message. and
        ( The message id should be from CON type message. )

Signed-off-by: Ashok Channa <ashok.channa@samsung.com>
Change-Id: Ib926601cf9eb1693a0faedf9834d67f9ba0ccd50
Reviewed-on: https://gerrit.iotivity.org/gerrit/268
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoFixed uninitialized memory/invalid memory issues
Erich Keane [Tue, 20 Jan 2015 20:59:20 +0000 (12:59 -0800)]
Fixed uninitialized memory/invalid memory issues

ocstack.c had a string being allocated without enough room, causing
readers/writers of the code to stomp on the next byte.  A few locations
had unintialized memory causing jumps to be made on uninitialized data.

Change-Id: Ifbccb463f1d09f7a09b752ee95cf84c9ae9a26c4
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/183
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>
9 years agoFix infinite loop in GroupAction.
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>
9 years agoChanges to make Linux build with CA_INT flag specified.
Joseph Morrow [Tue, 3 Feb 2015 00:07:30 +0000 (19:07 -0500)]
Changes to make Linux build with CA_INT flag specified.

These changes also include some work to ensure better global cleanup
in makefiles. Some of this clean up work also overlaps with cleaning
Arduino outputs. This commit only affects makefile builds.

Change-Id: Idcfce740f1ec5766599a1f0aafb5e635647e7692
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Signed-off-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/129
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoMade changes to support Arduino 1.5.8 with Connectivity Abstraction.
Joseph Morrow [Mon, 2 Feb 2015 23:40:01 +0000 (18:40 -0500)]
Made changes to support Arduino 1.5.8 with Connectivity Abstraction.

Since the CA Layer assumes version 1.5.8 of Arduino, our original
makefile implementation had to be updated to match this.

Since the directory structure is mildly different between 1.0.5 and
1.5.8, these changes were necessary that are found in
arduinomega.proerties.

Due to casting errors, source code was updated accordingly.

Change-Id: Ib8f68fa9dd4f14af2dfadbeac2f0d85cc0d292d4
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/34
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoCode cleanup in Security sample apps
Sachin Agrawal [Mon, 2 Feb 2015 22:50:35 +0000 (14:50 -0800)]
Code cleanup in Security sample apps

Removed CA_INT specific code. Updated OCInit calls to remove IP address
and port number.

Change-Id: Iba506b67e33060ea32b2430b443443305bfa0243
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/264
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoAltered the .gitignore to properly ignore unittest build biproducts
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>
9 years agoRemoved #ifdef CA_INTs and other code cleanup.
Sashi Penta [Sun, 1 Feb 2015 21:24:27 +0000 (13:24 -0800)]
Removed #ifdef CA_INTs and other code cleanup.

Change-Id: I664f0e2e500ba60ed35f2bd8c000ab3988672733
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/281
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoRelease notes for Feb 1st release
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>
9 years agoFix API of ThingsManger.
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>
9 years ago[SSM] Add android sample and fix jni issues.
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>
9 years agoFix build issue
Sakthivel Samidurai [Wed, 28 Jan 2015 12:04:24 +0000 (09:04 -0300)]
Fix build issue

Fix CA branch build issue by removing ocsecurity.c from makefile
and ocsecurityinternal.h from ocstack.c files.

Change-Id: Ic0b5926b82d555fdabfa8679bde9b0e68aa75af3
Signed-off-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/266
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoBuild OICMiddle using Scons on CA branch
Sashi Penta [Thu, 29 Jan 2015 22:56:08 +0000 (14:56 -0800)]
Build OICMiddle using Scons on CA branch

Change-Id: I63ad62700ee87b13c316fcf04d8e2c1fa42f4cc0
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/274
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: John Light <john.j.light@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>