platform/upstream/iotivity.git
9 years ago[CA-Integration] Fix Get working
Sashi Penta [Sat, 20 Dec 2014 08:51:27 +0000 (00:51 -0800)]
[CA-Integration] Fix Get working

We were not setting the numOPtions correctly for operations other than observe.

Change-Id: Iff3dd8e31d1278429ab1e42e97333eacd684190b
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
9 years ago[CA-Integration]: Temporary fix for stack smashing and fix support for "/"
Sashi Penta [Sat, 20 Dec 2014 07:48:07 +0000 (23:48 -0800)]
[CA-Integration]: Temporary fix for stack smashing and fix support for "/"

Change-Id: I54b9e4f8b51981094c8d78145510d3e865413f58
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
9 years agoMerge "[CA] [All] URI support , Optimization , License verification" into connectivit...
sudarshan prasad [Sat, 20 Dec 2014 07:35:47 +0000 (23:35 -0800)]
Merge "[CA] [All] URI support , Optimization , License verification" into connectivity-abstraction

9 years ago[CA-Integration] : Add support for sequence number for observe
Sashi Penta [Sat, 20 Dec 2014 05:59:10 +0000 (21:59 -0800)]
[CA-Integration] : Add support for sequence number for observe

Change-Id: I776308ad20911da52ca408c1cbca406bf9747353
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
9 years agoMerge "Fixed return value bug in CAGetNetworkInformation API" into connectivity-abstr...
sudarshan prasad [Sat, 20 Dec 2014 02:06:05 +0000 (18:06 -0800)]
Merge "Fixed return value bug in CAGetNetworkInformation API" into connectivity-abstraction

9 years agoAdd support OCNotifyAllObservers and OCNotifyListOfObservers
Sashi Penta [Sat, 20 Dec 2014 00:54:11 +0000 (16:54 -0800)]
Add support OCNotifyAllObservers and OCNotifyListOfObservers

Change-Id: If878e1a2da88b364ecf9601d844d2caf3d5ce1ed
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
9 years agoRegistering observers in the stack
Yamin Al-Mousa [Fri, 19 Dec 2014 23:32:15 +0000 (15:32 -0800)]
Registering observers in the stack

Changes made to store information regarding remote end points
for observers to send subsequent notifications.

Change-Id: I46c15b32919c1b1edd7297ace9676fdeab44808b
Signed-off-by: Yamin Al-Mousa <yamin.s.al-mousa@intel.com>
9 years agoCA Integration: Sending observe register/deregister request from client to server...
Vijay [Fri, 19 Dec 2014 18:43:18 +0000 (10:43 -0800)]
CA Integration: Sending observe register/deregister request from client to server using CA header options

Change-Id: I78ae3d916607ef994cb8d042611f7771b1ada501
Signed-off-by: Vijay <vijay.s.kesavan@intel.com>
9 years agoFixed return value bug in CAGetNetworkInformation API
Sachin Agrawal [Fri, 19 Dec 2014 23:33:47 +0000 (15:33 -0800)]
Fixed return value bug in CAGetNetworkInformation API

When some of the network interfaces are not UP/RUNNING, res is set to
an error value and this error value is returned from the API.

Also updated Linux sample application which was in-correctly allocating
memory to the buffer provided to CAGetNetworkInformation API.

Change-Id: I65bcbe9b91716309b8c152b50405fd71c56ba7b3
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
9 years agoFixed bad memory allocation, which was causing corruption
Erich Keane [Thu, 18 Dec 2014 22:52:20 +0000 (14:52 -0800)]
Fixed bad memory allocation, which was causing corruption

Previously the stack was allocating based on a variable that was
never actually set, and despite that was likely allocating based on
the incorrect data.  This patch ensures that the allocation is
based on the actual size of the string.

Change-Id: Ie2feafe665b870919e17222dade5548794b6ce67
Signed-off-by: Erich Keane <erich.keane@intel.com>
9 years ago[CA] [All] URI support , Optimization , License verification
ashok.channa [Fri, 19 Dec 2014 10:23:21 +0000 (19:23 +0900)]
[CA] [All] URI support , Optimization , License verification

1) Updating the "/" support
      Now "/" is madatory to send the request
2) Removing glib header files and updated read me file to downloaded separately
3) Optimization of WiFI adapter in arduino platform

Signed-off-by: ashok.channa <ashok.channa@samsung.com>
Change-Id: Iabda06b0ac592b89adbc9870d8c78faccdfe3a12

9 years agoCA Integration: Use only non-confirmed messages for initial integration
Vijay [Fri, 19 Dec 2014 02:14:17 +0000 (18:14 -0800)]
CA Integration: Use only non-confirmed messages for initial integration

Change-Id: Ibe2d3e18b4dca1230a2be1df69398d3687b121a0
Signed-off-by: Vijay <vijay.s.kesavan@intel.com>
9 years agoCA Integration: Enabling PUT, POST, DELETE operations
Vijay [Fri, 19 Dec 2014 01:13:17 +0000 (17:13 -0800)]
CA Integration: Enabling PUT, POST, DELETE operations

Change-Id: Ifb32391c176bcc03f3c1372113f913bc5cc16bd4
Signed-off-by: Vijay <vijay.s.kesavan@intel.com>
9 years agoCA Integration: Invoking application CB when response is received.
Sashi Penta [Thu, 18 Dec 2014 20:31:50 +0000 (12:31 -0800)]
CA Integration: Invoking application CB when response is received.

Mods to support sending server responses with CASendResponse
Rebase

Change-Id: I4925abf92af0c1ffe286e03bf233a7b08f8d043a
Signed-off-by: Vijay <vijay.s.kesavan@intel.com>
Signed-off-by: Doug Hudson <douglas.hudson@intel.com>
Signed-off-by: Erich Keane <erich.keane@intel.com>
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
9 years agoCA Integration: Enabling OCDoResource to send messages
Vijay [Sun, 14 Dec 2014 05:36:02 +0000 (21:36 -0800)]
CA Integration: Enabling OCDoResource to send messages

Change-Id: I289340c8dc05cebe4bc1dfc2e7acdf73decc536b
Signed-off-by: Vijay <vijay.s.kesavan@intel.com>
9 years agoIntegrate OCInit and OCProcess functionality with CA
Vijay [Sat, 13 Dec 2014 18:02:45 +0000 (10:02 -0800)]
Integrate OCInit and OCProcess functionality with CA

Change-Id: Ib11fc68c17f8f135e57e99c452a4100d84677fca
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
Signed-off-by: Vijay <vijay.s.kesavan@intel.com>
9 years agoAdd required compiler flags for CA integration
Sashi Penta [Sat, 13 Dec 2014 10:14:40 +0000 (02:14 -0800)]
Add required compiler flags for CA integration

Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
Change-Id: Ib5ef49afa6fbb729b7cd3208e6522af859c5b964

9 years ago[CA] [All] Klockwork , Prevent , Memory leaks fixed
ashok.channa [Thu, 18 Dec 2014 10:38:23 +0000 (19:38 +0900)]
[CA] [All] Klockwork , Prevent , Memory leaks fixed

Updating the BLE Android and memory leak fixes
Signed-off-by: ashok.channa <ashok.channa@samsung.com>
Change-Id: I5f27f69729a949d6111dd096d72a484e87bc89a3

9 years agoAPI change , Retransmission Callback on expiry , remove glib source for dynamic linking
ashok.channa [Wed, 17 Dec 2014 14:28:01 +0000 (23:28 +0900)]
API change , Retransmission Callback on expiry , remove glib source for dynamic linking

Improvement of following functionality
1) API change - CACreateRemoteEndpoint to allow connectivity type for Remote Endpoint formation.
2) Retransmission timeout callback on Response Callback if number transmissions are expired.
3) Android BLE connectivity updation.
4) Removed glib library source and including the library as dynamic library.

Signed-off-by: ashok.channa <ashok.channa@samsung.com>
Change-Id: I37a79d4a88219fd4aa81993444cff68c0296b568

9 years agoMerge "Implementation of following functionality" into connectivity-abstraction
sudarshan prasad [Wed, 17 Dec 2014 02:00:57 +0000 (18:00 -0800)]
Merge "Implementation of following functionality" into connectivity-abstraction

9 years agoMerge "Fix compiler warnings" into connectivity-abstraction
sudarshan prasad [Tue, 16 Dec 2014 20:11:30 +0000 (12:11 -0800)]
Merge "Fix compiler warnings" into connectivity-abstraction

9 years agoImplementation of following functionality
ashok.channa [Tue, 16 Dec 2014 10:17:27 +0000 (19:17 +0900)]
Implementation of following functionality

1) DTLS support for ETH and Tizen platform
2) Removing SUDO from make files
3) Optimization of WIFI , ETH adapters for all platforms
4) Adding single thread header files for consistency with source files.

Signed-off-by: ashok.channa <ashok.channa@samsung.com>
Change-Id: I8a92b0ef38b16818c740f3e95aad5ce1e65741a4

9 years agoImplementation of connectivity abstraction feature Release v0.61
ashok.channa [Fri, 12 Dec 2014 02:25:30 +0000 (11:25 +0900)]
Implementation of connectivity abstraction feature Release v0.61

Connectivity Abstraction feature provides unified approach for multiple
Transports
Supported Features :
Ubuntu ( WIFI-DTLS, ETH) - Multi Thread
Tizen (WIFI, BT, BLE) - Multi Thread
Arduino( WIFI, ETH) -Single Thread
Android( WIFI, BLE) - Multi Thread

Please read the RELEASE v0.6 @csdk\connectivity for more information.
Signed-off-by: ashok.channa <ashok.channa@samsung.com>
Change-Id: I57c81845725f255b43829b9f9e8fe62e8d7b8517

9 years agoFix compiler warnings
Sashi Penta [Sat, 13 Dec 2014 09:56:58 +0000 (01:56 -0800)]
Fix compiler warnings

Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
Change-Id: I70f105c4703045b32b84fa51cd8fb86ea6518d91

9 years agoMoved all presence functionality into the stack layer from coap layer.
Joseph Morrow [Fri, 12 Dec 2014 23:04:50 +0000 (18:04 -0500)]
Moved all presence functionality into the stack layer from coap layer.

This task was initiated so that observe parameters can be polled from
whatever new(er) transport layer we decide to use in the future and then
specific presence parameters can be determined once we have those observe
parameters. This effectively causes all presence related work to be done
in the stack layer, while observe related parameters are transferred OTA
and presence parameters are simply extrapolated after the fact.

This changeset correlates to Rally User Story: US2195 "As an Iotivity
client and server developer, all presence related functionality in the
OCCoap layer is moved to the stack layer."

Change-Id: Ibb784946fe233e17834136ed96ebed3436372742
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
9 years agoMerge "Implementation of connectivity abstraction feature Release v0.5" into connecti...
sudarshan prasad [Thu, 11 Dec 2014 23:33:53 +0000 (15:33 -0800)]
Merge "Implementation of connectivity abstraction feature Release v0.5" into connectivity-abstraction

9 years agoMerge branch 'master' into connectivity-abstraction
Sudarshan Prasad [Thu, 11 Dec 2014 22:59:10 +0000 (14:59 -0800)]
Merge branch 'master' into connectivity-abstraction

Conflicts:
resource/csdk/makefile

9 years agoMerge "Update build scripts"
Patrick Lankswert [Thu, 11 Dec 2014 14:20:55 +0000 (06:20 -0800)]
Merge "Update build scripts"

9 years agoMerge "Added Plugin Manager Configuration Feature - application developer can modify...
Uze Choi [Thu, 11 Dec 2014 07:34:31 +0000 (23:34 -0800)]
Merge "Added Plugin Manager Configuration Feature  - application developer can modify plugin manager configuration(xml) like plugin path, max number of plugins."

9 years agoMerge "Updated the .gitignore"
sudarshan prasad [Thu, 11 Dec 2014 07:27:22 +0000 (23:27 -0800)]
Merge "Updated the .gitignore"

9 years agoUpdated the .gitignore
Erich Keane [Fri, 5 Dec 2014 21:53:15 +0000 (13:53 -0800)]
Updated the .gitignore

Updated the gitignore to properly ignore things in the new folder
format, as well as added klocworks and some other missing ignores.

Change-Id: I75e7ac8497ae5a51f9bab00f90dc025190d68960
Signed-off-by: Erich Keane <erich.keane@intel.com>
9 years agoMerge "Fixed need of implementers to include cereal in their build path"
sudarshan prasad [Wed, 10 Dec 2014 21:38:36 +0000 (13:38 -0800)]
Merge "Fixed need of implementers to include cereal in their build path"

9 years agoImplementation of connectivity abstraction feature Release v0.5
ashok.channa [Wed, 10 Dec 2014 16:27:02 +0000 (01:27 +0900)]
Implementation of connectivity abstraction feature Release v0.5

Connectivity Abstraction feature provides unified approach for multiple
Transports
Supported Features :
Ubuntu ( WIFI , ETH) - Multi Thread
Tizen ( WIFI ,BT,BLE) - Multi Thread
Arduino( WIFI,ETH) -Single Thread
Android( WIFI,BLE) - Multi Thread

Please read the RELEASE v0.5 @csdk\connectivity for more information.

Signed-off-by: ashok.channa <ashok.channa@samsung.com>
Change-Id: Ic27f1d7c7aaa9f2d72883b94ab2b0a73e3aaf073

9 years agoAdded Plugin Manager Configuration Feature
heesung84.kim [Wed, 10 Dec 2014 05:00:13 +0000 (14:00 +0900)]
Added Plugin Manager Configuration Feature
 - application developer can modify plugin manager configuration(xml) like plugin path, max number of plugins.

Added More Plugin Manager APIs
 - int getState()
   getState API can get plugin's state
 - int rescanPlugin()
   Rescan the plugin folder

Removed Unnecessary Plugin Manager APIs
 - std::string getSupportedType(void)
 - int addSupportedType(const std::string rscType)

Disabled Auto Plugin Detection Feature
 - In previous version, PPM used iNotify to detect new Plugin detection.
   However, iNotify have platform porting issue and heavy. We will find better way in next version.

Change-Id: I0efac20efbc39b3fb0b2bcc1a34685acad1c7517
Signed-off-by: heesung84.kim <heesung84.kim@samsung.com>
9 years agoMerge changes I56f29eac,Ic7530d44
sudarshan prasad [Tue, 9 Dec 2014 22:30:59 +0000 (14:30 -0800)]
Merge changes I56f29eac,Ic7530d44

* changes:
  Fixed usages of memset(..0..) to use Calloc/init'er
  Added OCCalloc functionality and Fixed Malloc Tests

9 years agoMerge "Send presence notification on stopping presence.(Multicast)"
sudarshan prasad [Tue, 9 Dec 2014 22:06:08 +0000 (14:06 -0800)]
Merge "Send presence notification on stopping presence.(Multicast)"

9 years agoMerge "Fixed klocwork issues in C++ Stack"
sudarshan prasad [Tue, 9 Dec 2014 21:09:02 +0000 (13:09 -0800)]
Merge "Fixed klocwork issues in C++ Stack"

9 years agoMerge "Fix klocwork issues in C samples"
sudarshan prasad [Tue, 9 Dec 2014 20:50:02 +0000 (12:50 -0800)]
Merge "Fix klocwork issues in C samples"

9 years agoFixed need of implementers to include cereal in their build path
Erich Keane [Wed, 3 Dec 2014 22:48:16 +0000 (14:48 -0800)]
Fixed need of implementers to include cereal in their build path

Previously we did a bit of implementation in the OCRepresentation.cpp
file because we thought we needed to (due to Template confusion).

It has been realized that this isn't necessary, so this fix removes that
need.

Change-Id: I5e022fe37b822eae83e164686c979ac6f474135c
Signed-off-by: Erich Keane <erich.keane@intel.com>
9 years agoFixed klocwork issues in C++ Stack
Erich Keane [Tue, 9 Dec 2014 19:02:03 +0000 (11:02 -0800)]
Fixed klocwork issues in C++ Stack

Ran klocwork 10 and fixed the issues that were highlighted.

fridgeclient:
return values from constructResourceObject weren't checked
for null.  Additionally, variables sent to getValue uninitialized.

presenceclient: presenceHandle used uninitialized.

threadingsample: variables sent to getValue uninitialized.

OicJsonSerializer.hpp:
Removed dead code that had a large number of klocwork issues
Methods that didn't return despite having a return type.

InProcClientWrapper.cpp:
Contexts deleted in cases where they aren't passed to the C stack.

InProcServerWrapper.cpp:
entityhandlerRequest was used without being checked for null

Many samples:
Replaced while(true) with a condition_variable
Ensured 'main' returned 0.  Despite being optional, KW shows this as
a warning
incorrect 'main' prototype (argv specified array length 1!)

Out of the 40+ issues found of all types, the following were skipped
due to being in an external library:

Review:
CWARN.MEM.NONPOD (4 issues)

Warning:
CL.MLK (2 issues)

NPD.FUNC.MUST(1 issue)

Change-Id: I1e9fa222cc27352075a1b8f5d53787bd3020b525
Signed-off-by: Erich Keane <erich.keane@intel.com>
9 years agoFixed usages of memset(..0..) to use Calloc/init'er
Erich Keane [Mon, 8 Dec 2014 20:15:29 +0000 (12:15 -0800)]
Fixed usages of memset(..0..) to use Calloc/init'er

Our code has a number of cases where we declare a struct then
immediately memset to all 0.  This uses the initializers which
are less prone to failure and are faster due to compiler optimizations.

Additionally, we have a number of cases where we OCMalloc a
struct, then immediately zero it.  This fix uses the new OCCalloc
in order to save unnecessary memset and reduce potential for accidental
error.

In a few of the cases, older compilers didn't handle the {0} initializer
correctly and gave errors (Arduino Mega).  Because of that, a few structs
were reordered to compile for that platform.

Change-Id: I56f29eac68240abea2fb8a69d888a09d61d4488a
Signed-off-by: Erich Keane <erich.keane@intel.com>
9 years agoFix klocwork issues in C samples
Sakthivel Samidurai [Fri, 5 Dec 2014 16:26:52 +0000 (13:26 -0300)]
Fix klocwork issues in C samples

Scan klocwork and fix all issues in c samples that were highlighted.

Change-Id: Id018abfd380c8723842a24f20c8f781dca177458
Signed-off-by: Sakthivel Samidurai <sakthivel.samidurai@intel.com>
9 years agoMerge "[SSM] Modify repo init method and fix Resource data reader"
Uze Choi [Tue, 9 Dec 2014 09:25:04 +0000 (01:25 -0800)]
Merge "[SSM] Modify repo init method and fix Resource data reader"

9 years agoMerge "[SSM] Reflect current OIC api style and add Tizen Inproc Sample"
Uze Choi [Tue, 9 Dec 2014 09:12:05 +0000 (01:12 -0800)]
Merge "[SSM] Reflect current OIC api style and add Tizen Inproc Sample"

9 years agoMerge "[SSM] Implement Inproc feature for Linux platform"
Uze Choi [Tue, 9 Dec 2014 09:02:35 +0000 (01:02 -0800)]
Merge "[SSM] Implement Inproc feature for Linux platform"

9 years agoMerge "Fix Unicast Presence Error"
sudarshan prasad [Tue, 9 Dec 2014 00:59:47 +0000 (16:59 -0800)]
Merge "Fix Unicast Presence Error"

9 years agoSend presence notification on stopping presence.(Multicast)
omkar [Tue, 9 Dec 2014 00:04:39 +0000 (16:04 -0800)]
Send presence notification on stopping presence.(Multicast)

Previously notifcation was not being sent on presence stopped.
Adding a check in case of multicast presence for presence stopped.

Change-Id: I774295b89fef607a3d1936d26071d79c41ec96b5
Signed-off-by: omkar <omkar.m.hegde@intel.com>
9 years agoFix Unicast Presence Error
omkar [Mon, 8 Dec 2014 22:32:28 +0000 (14:32 -0800)]
Fix Unicast Presence Error

Fix for IOT-95. Previously we had missed a "+1" when mallocing a char *

Change-Id: I96021ddce22c2fa7e3afa8f8d10e6da10b47ebbc
Signed-off-by: omkar <omkar.m.hegde@intel.com>
9 years agoAdded OCCalloc functionality and Fixed Malloc Tests
Erich Keane [Mon, 8 Dec 2014 20:00:18 +0000 (12:00 -0800)]
Added OCCalloc functionality and Fixed Malloc Tests

The OCMalloc tests didn't seem to be running correctly, so
this fixes that.  Additionally, added OCCalloc functionality so
that we can replace 'memset 0' in a number of places in the C Stack.

Change-Id: Ic7530d442c146724e91ec12646a4363de63f6874
Signed-off-by: Erich Keane <erich.keane@intel.com>
9 years agoImprove Presence Callback in C++ SDK
omkar [Tue, 25 Nov 2014 21:39:18 +0000 (13:39 -0800)]
Improve Presence Callback in C++ SDK

Passing the host address information to the application on receiving
presence Notification. Based on IOT-91.

Signed-off-by: omkar <omkar.m.hegde@intel.com>
Change-Id: Ie6bc5e20c71e14e2745da435a65de874d6f28742

9 years agoMerge branch 'master' into connectivity-abstraction
Sudarshan Prasad [Mon, 8 Dec 2014 21:56:40 +0000 (13:56 -0800)]
Merge branch 'master' into connectivity-abstraction

Conflicts:
resource/csdk/makefile
resource/csdk/stack/include/internal/ocresource.h
resource/csdk/stack/include/internal/ocstackinternal.h
resource/csdk/stack/src/ocstack.c

Change-Id: Ia681bc1b72f2611a0c51c36a58451bd409e1ddd1

9 years agoMerge "Added support to allow more than one presence resource type filter."
sudarshan prasad [Mon, 8 Dec 2014 20:48:50 +0000 (12:48 -0800)]
Merge "Added support to allow more than one presence resource type filter."

9 years agoAdded support to allow more than one presence resource type filter.
Joseph Morrow [Mon, 8 Dec 2014 20:15:31 +0000 (15:15 -0500)]
Added support to allow more than one presence resource type filter.

Where only one filter was supported before, resource type filters must
be added one at a time through use of the OCDoResource() API, therefore
a call to OCDoResource() for every amend is req'd with this add-on.

Change-Id: I54a1166ad6992a26f133ed6797730fcdb4e9cf73
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
9 years agoMerge "Fix the name of the resource created in Arduino server to Light."
sudarshan prasad [Mon, 8 Dec 2014 07:05:52 +0000 (23:05 -0800)]
Merge "Fix the name of the resource created in Arduino server to Light."

9 years agoMerge "Fixed EntityHandlerRequest initialization to match other uses"
sudarshan prasad [Mon, 8 Dec 2014 07:00:53 +0000 (23:00 -0800)]
Merge "Fixed EntityHandlerRequest initialization to match other uses"

9 years agoMerge "Fixed OCSerialization NVP Header Reset"
sudarshan prasad [Mon, 8 Dec 2014 06:50:42 +0000 (22:50 -0800)]
Merge "Fixed OCSerialization NVP Header Reset"

9 years agoUpdate build scripts
Caiwen Zhang [Fri, 5 Dec 2014 08:00:57 +0000 (16:00 +0800)]
Update build scripts

1) Add build options to enviornment(env) to avoid export variables
2) Sync with the newest code
3) Update Readme(Readme.scons.txt)
4) Extend arduino supporting
5) Add build scripts for services
6) Add a doc(scons_script_how_to.txt) about how to write iotivity
    build script
7) change resource libs from static library to share library

Last sync and test with the newest code commit:
  e9403ce6d4d7a1a0ac8d12c5acc876af7f7a8f76

Note:
  Scripts for Service are provided but aren't enabled due to the
service code is too old it can't pass the build.

Change-Id: I06427cfe65e6fcf5837376f2f89d1e93c662f920
Signed-off-by: Caiwen Zhang<caiwen.zhang@intel.com>
9 years ago[SSM] Modify repo init method and fix Resource data reader
jk13 [Mon, 8 Dec 2014 04:58:12 +0000 (13:58 +0900)]
[SSM] Modify repo init method and fix Resource data reader

Modify Repository class init method to load local SoftSensors,

Fix OIC data reader to read correct data

Change-Id: I099d732ddf019deb79d2d88477556eacf2eb2078
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
9 years ago[SSM] Reflect current OIC api style and add Tizen Inproc Sample
jk13 [Fri, 28 Nov 2014 06:30:17 +0000 (15:30 +0900)]
[SSM] Reflect current OIC api style and add Tizen Inproc Sample

Problem:
        Need to reflect new OIC API design
        To provide Tizen Inproc sample

How:
        Change SSM OIC wrapping class to reflect current OIC api sets
        Modify previous Tizen sample to use Inproc API

Change-Id: I3cde8a769684375cf03678f2af945f680fa85ca5
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
9 years ago[SSM] Implement Inproc feature for Linux platform
jk13 [Fri, 21 Nov 2014 06:43:12 +0000 (15:43 +0900)]
[SSM] Implement Inproc feature for Linux platform

Problem:
        To meet M2 requirements

How:
        Separate SSM Interface to support Inproc/Outproc.
        Change Application to use Inproc interface rather than Resource/Client model

Comment:
        This version is not tested to build. Integrate new OIC is still in progress.

Change-Id: Ib6466c91e7e407fd38c255300a8c253ac15eb978
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
9 years agoAdded release notes for Dec 6th release.
Sudarshan Prasad [Sun, 7 Dec 2014 01:04:11 +0000 (17:04 -0800)]
Added release notes for Dec 6th release.

Change-Id: I86359fb2072a1a910cd405c8b24cfccbac700da9
Signed-off-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
9 years agoImplementation of connectivity abstraction feature Release v0.4
ashok.channa [Sat, 6 Dec 2014 09:41:33 +0000 (18:41 +0900)]
Implementation of connectivity abstraction feature Release v0.4

Connectivity Abstraction feature provides unified approach for multiple
Transports

Please read the RELEASE v0.4 @csdk\connectivity for more information.
releasing the source code.

Signed-off-by: ashok.channa <ashok.channa@samsung.com>
Change-Id: Ibc25a62960756960d0c763c88b651e414d8685da

9 years agoFixed OCSerialization NVP Header Reset
Erich Keane [Wed, 3 Dec 2014 19:52:53 +0000 (11:52 -0800)]
Fixed OCSerialization NVP Header Reset

OCSerialization was not resetting the name-value pair header on error,
so this fixes that issue.  When searching for a NVP that doesn't exist,
cereal/RapidJSON will leave the iterator in a 'bad' place that can result
in not being able to find what we're looking for.

Change-Id: I40c1ee5397ebf2e0eb771ed8a209ea9e75757a33
Signed-off-by: Erich Keane <erich.keane@intel.com>
9 years agoFixed EntityHandlerRequest initialization to match other uses
Erich Keane [Fri, 5 Dec 2014 19:53:08 +0000 (11:53 -0800)]
Fixed EntityHandlerRequest initialization to match other uses

Everywhere else we are using initializers rather than memcpy, so
this fix makes this one instance match the rest of the initializers.

Change-Id: I7ccb433ed58abbfb25ada17214dbaf5819d210fa
Signed-off-by: Erich Keane <erich.keane@intel.com>
9 years agoFix the name of the resource created in Arduino server to Light.
Yamin Al-Mousa [Fri, 5 Dec 2014 19:04:46 +0000 (11:04 -0800)]
Fix the name of the resource created in Arduino server to Light.

This is to bring resources in sync with Linux client example.
Now Linux client samples can interact with Arduino server.

Change-Id: Ic7985790c8099d3b6230e1f48824e61b3d2272a5
Signed-off-by: Yamin Al-Mousa <yamin.s.al-mousa@intel.com>
9 years agoFixing [CA-Blocker]: Only one request is being served by a server
Sashi Penta [Fri, 5 Dec 2014 17:54:43 +0000 (09:54 -0800)]
Fixing [CA-Blocker]: Only one request is being served by a server

Adapters are modified take the binary data to send the request and responses.

Signed-off-by: ashok.channa <ashok.channa@samsung.com>
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
Change-Id: Idfbc1f440febdd8a4209e60c80bca10939cabd39

9 years agoMerge "Implement functionality to set PSK credentials for DTLS in OC stack."
sudarshan prasad [Fri, 5 Dec 2014 01:59:58 +0000 (17:59 -0800)]
Merge "Implement functionality to set PSK credentials for DTLS in OC stack."

9 years agoImplement slow response feature.
Doug Hudson [Thu, 4 Dec 2014 21:37:22 +0000 (16:37 -0500)]
Implement slow response feature.

This feature allows a resource entity handler to provide a "slow response"
to a client request.  That is, if a request is received but the server cannot
respond immediately (e.g. response data is not available), the server can
instead respond at a later time.  The same API is used for both immediate
and slow responses.

Updated collection's batch interface to aggregate responses of local resources
contained in the collection.  Note that the aggregate response only applies
to local resources, not remote resources.

This feature introduces a new C API, OCDoResponse and a new C++ API,
OCPlatform::sendResponse.  The C++ modifications also include a change to
the the signature of the applications entity handler.

Change-Id: Ic33ab0c7ff52481bed86e9a77319baa3813dd6cd
Signed-off-by: Doug Hudson <douglas.hudson@intel.com>
Signed-off-by: Yamin Al-Mousa <yamin.s.al-mousa@intel.com>
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Signed-off-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Signed-off-by: Erich Keane <erich.keane@intel.com>
9 years agoImplement functionality to set PSK credentials for DTLS in OC stack.
Sachin Agrawal [Thu, 4 Dec 2014 17:43:17 +0000 (09:43 -0800)]
Implement functionality to set PSK credentials for DTLS in OC stack.

Uptil now DTLS module in OCStack was using PSK credentials which
were hard-coded. Added API which can be used by application to
provide device identity and PSK credentials.

Change-Id: I4df6db6ab70ee69917d0111f06a6504f3ce56ce2
Signed-off-by: Chris Mitchell <cmitch2@intel.com>
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
9 years agoImplementation of connectivity abstraction feature Release v0.3
ashok.channa [Thu, 4 Dec 2014 09:25:59 +0000 (18:25 +0900)]
Implementation of connectivity abstraction feature Release v0.3

Connectivity Abstraction feature provides unified approach for multiple
Transports

Please read the RELEASE v0.3 @csdk\connectivity for more information.
releasing the source code.

Signed-off-by: ashok.channa <ashok.channa@samsung.com>
Change-Id: I1cbadc918e9f54e5664b2ffca8c4908e8acb010f

9 years agoMerge "Implementation of connectivity abstraction feature release v0.2" into connecti...
sudarshan prasad [Thu, 4 Dec 2014 02:05:04 +0000 (18:05 -0800)]
Merge "Implementation of connectivity abstraction feature release v0.2" into connectivity-abstraction

9 years agoMoved location of tinyDTLS from csdk to extlibs directory
Sachin Agrawal [Tue, 2 Dec 2014 17:11:26 +0000 (09:11 -0800)]
Moved location of tinyDTLS from csdk to extlibs directory

External libraries are currently being stored under extlibs
directory and therefore moved tinyDTLS also there.

Change-Id: Ib21bd994115b7cd2fddfe92010b6f5f8d2e0b658
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
9 years agoMerge "Implemented JSON Serialization using Cereal Library"
sudarshan prasad [Tue, 2 Dec 2014 23:23:46 +0000 (15:23 -0800)]
Merge "Implemented JSON Serialization using Cereal Library"

9 years agoAdded server instance id into resource discovery response message.
Thuyen Tran [Sat, 22 Nov 2014 13:15:27 +0000 (05:15 -0800)]
Added server instance id into resource discovery response message.

Change-Id: I8e8d256137968b1eca102803d522649b1ac57482
Signed-off-by: Thuyen Tran <thuyen.c.tran@intel.com>
9 years agoImplementation of connectivity abstraction feature release v0.2
ashok.channa [Tue, 25 Nov 2014 21:37:18 +0000 (13:37 -0800)]
Implementation of connectivity abstraction feature release v0.2

Connectivity Abstraction feature provides unified approach for multiple
Transports
Please check Release v0.2 document for additional information
We followed Coding guidelines as per current base source
Non Supported code is just made to print the message.

Change-Id: I2b34772b3189c0a5740e74589d9f790c0dc383a7
Signed-off-by: ashok.channa <ashok.channa@samsung.com>
9 years agoImplemented JSON Serialization using Cereal Library
Erich Keane [Wed, 22 Oct 2014 20:31:13 +0000 (13:31 -0700)]
Implemented JSON Serialization using Cereal Library

Previously we were hand-mangling strings for JSON serialization and using
boost::property_tree for parsing.  Now we are using an open source library (cereal)
to do both sides in the C++ stack

Change-Id: I2db2657552a31cdf37c2f2dbbcfdb34e48549f00
Signed-off-by: Erich Keane <erich.keane@intel.com>
9 years agoMerge "Fix sending 3 notifications when creating a resource"
sudarshan prasad [Thu, 27 Nov 2014 17:25:28 +0000 (09:25 -0800)]
Merge "Fix sending 3 notifications when creating a resource"

9 years agoMerge "Fix the infinite PRESENCE_STOPPED message"
sudarshan prasad [Thu, 27 Nov 2014 17:24:29 +0000 (09:24 -0800)]
Merge "Fix the infinite PRESENCE_STOPPED message"

9 years agoFix sending 3 notifications when creating a resource
Sashi Penta [Tue, 25 Nov 2014 23:37:48 +0000 (15:37 -0800)]
Fix sending 3 notifications when creating a resource

Implemented bind resource interface/type internal functions which
do not send the presence notificiations.

Change-Id: Ibf093d489d24ee729f30d714fca5f9b6d9dfe254
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
9 years agoFix the infinite PRESENCE_STOPPED message
Sashi Penta [Sun, 23 Nov 2014 00:40:24 +0000 (16:40 -0800)]
Fix the infinite PRESENCE_STOPPED message

When a client to subscirbes to a server, and when the server process is
exited, client is getting was getting infinte PRESENCE_STOPPED messages.
This commit fixes this issue. Introduced a new stack result
type : PRESENCE_TIMEOUT to indicate timeout of the server.
PRESENCE_STOPPED is used for graceful stopping of the server.

Change-Id: I4e122176f8f7ea8e04d98dea02d22432b4c4555a
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
9 years agoMerge "Adding PCF() wrappers to OC_LOG() calls that were missing in the stack."
Erich Keane [Mon, 24 Nov 2014 18:33:42 +0000 (10:33 -0800)]
Merge "Adding PCF() wrappers to OC_LOG() calls that were missing in the stack."

9 years agoMerge "Implement Server Instance ID generation" into connectivity-abstraction
sudarshan prasad [Fri, 21 Nov 2014 21:18:39 +0000 (13:18 -0800)]
Merge "Implement Server Instance ID generation" into connectivity-abstraction

9 years agoImplement Server Instance ID generation
Erich Keane [Thu, 20 Nov 2014 19:34:31 +0000 (11:34 -0800)]
Implement Server Instance ID generation

We require a unique ID per server instance.  This commit adds a function
to generate a single UniqueID per server instance, and provide it whenever
needed.  Additionally, a "As String" convienience function has been
provided.

Change-Id: Iac820a1dfc96a5025db829ec631d58da920d77f0
Signed-off-by: Erich Keane <erich.keane@intel.com>
9 years agoModified makefiles to include CA in our build
Sudarshan Prasad [Fri, 21 Nov 2014 00:18:54 +0000 (16:18 -0800)]
Modified makefiles to include CA in our build

CSDK makefile is modified to include CA for build process.

Signed-off by: Sudarshan Prasad <sudarshan.prasad@intel.com>
Change-Id: I9875bdf6e7c3b09a538626065c081200b5aaa86d

9 years agoMerge "Implementation of connectivity abstraction feature-Ubutu v0.1"
Uze Choi [Thu, 20 Nov 2014 10:27:05 +0000 (02:27 -0800)]
Merge "Implementation of connectivity abstraction feature-Ubutu v0.1"

9 years agoImplementation of connectivity abstraction feature-Ubutu v0.1
ashok.channa [Fri, 14 Nov 2014 14:32:40 +0000 (23:32 +0900)]
Implementation of connectivity abstraction feature-Ubutu v0.1

Connectivity Abstraction feature provides unified approach for multiple
Transports

Adding WIFI transport support on Ubuntu platform in the  v0.1 release
We followed Coding guidelines as per current base source.

Please read the Release notes v0.1 for more information.
Non Supported code is just made to print the message.

Change-Id: Id018c10680a5cf0ce046592da46cc3ad69669d77
Signed-off-by: ashok.channa <ashok.channa@samsung.com>
9 years agoMerge "Removed Protocol Plugin developer guide document."
Uze Choi [Thu, 20 Nov 2014 02:33:11 +0000 (18:33 -0800)]
Merge "Removed Protocol Plugin developer guide document."

9 years agoMerge "Fixed: bug where Header Option count would be zero"
sudarshan prasad [Wed, 19 Nov 2014 23:07:53 +0000 (15:07 -0800)]
Merge "Fixed: bug where Header Option count would be zero"

9 years agoRemoved Protocol Plugin developer guide document.
junho13.lee [Wed, 19 Nov 2014 06:03:57 +0000 (15:03 +0900)]
Removed Protocol Plugin developer guide document.

Because uploading the developer guide document to the web page,
we no longer manage the document in the repository.

Change-Id: I5aeed10245ce1d255ce69dfd7a2255c5e9f9cdf9
Signed-off-by: junho13.lee <junho13.lee@samsung.com>
9 years agoFixed bug where InvalidParam exception thrown on re-observe
Erich Keane [Tue, 18 Nov 2014 22:23:14 +0000 (14:23 -0800)]
Fixed bug where InvalidParam exception thrown on re-observe

Observing a resource more than once isn't allowed.  However, we were
not clearing the "Observation Handle" on observation cancel.  This
patch resets the observe handle to nullptr when cancelling observation
so that we can re-observe after cancelling.

Change-Id: I507a427e641ad08c5e48e2dea4c5b7b3d0e3a79b
Signed-off-by: Erich Keane <erich.keane@intel.com>
9 years agoFixed: bug where Header Option count would be zero
Erich Keane [Tue, 18 Nov 2014 22:06:12 +0000 (14:06 -0800)]
Fixed: bug where Header Option count would be zero

01.org IOT-76

Header options had a defect introduced attempting to fix
the 'zero' header option count value.  In the previous defect,
the stack would have an uninitialized header options count
when there were none.  The previous fix has been removed and
initialization has been done in the correct place.

Change-Id: I99e0539f86573cfa7392921e1fdfe25dd80b303a
Signed-off-by: Erich Keane <erich.keane@intel.com>
9 years ago[SSM] Adapt astyle code formatter
jk13 [Tue, 18 Nov 2014 01:44:31 +0000 (10:44 +0900)]
[SSM] Adapt astyle code formatter

Problem: Follow coding guideline

How: Adapt astyle cpp formatter

Change-Id: I58ba77542f5fb3a935e1083a076957357599bc7e
Signed-off-by: Kim Jee Hyeok <jihyeok13.kim@samsung.com>
9 years agoMerge "[SSM] Modify thread util and framework init method"
Uze Choi [Tue, 18 Nov 2014 01:37:37 +0000 (17:37 -0800)]
Merge "[SSM] Modify thread util and framework init method"

9 years agoMerge "Supporting Java Plugin and making plugin manager as a library"
Uze Choi [Tue, 18 Nov 2014 00:40:58 +0000 (16:40 -0800)]
Merge "Supporting Java Plugin and making plugin manager as a library"

9 years ago[SSM] Modify thread util and framework init method
jk13 [Mon, 17 Nov 2014 11:11:03 +0000 (20:11 +0900)]
[SSM] Modify thread util and framework init method

Problem: Thread worker crashes while terminating.
         SoftSensor searching path must given at compile time

How:     Rearchitecture threading model
         Add XML descriptor based framework initialization.
           1. Search SoftSensorDescription.xml
              (previously high-context.xml) where executable located
           2. Or put search path using below init configration.

<SSMCore>
    <Device>
        <UDN>abcde123-31f8-11b4-a222-08002b34c003</UDN>
        <Name>MyPC</Name>
        <Type>PC</Type>
    </Device>
    <Config>
        <SoftSensorRepository>/usr/local/SSRepo/</SoftSensorRepository>
        <SoftSensorDescription>/usr/local/SSRepo/SSDescription.xml</SoftSensorDescription>
    </Config>
</SSMCore>

Change-Id: Id2c0746357d9e850e9e90016547b116412b758d2
Signed-off-by: Kim Jee Hyeok <jihyeok13.kim@samsung.com>
9 years ago[SSM] Fix to call OIC platform destructor
jk13 [Mon, 17 Nov 2014 11:10:30 +0000 (20:10 +0900)]
[SSM] Fix to call OIC platform destructor

Problem: There is no destructor caller

How: Call platform destructor when OIC platform manager destroying

Change-Id: I83b033494f3bb84e5341c21d7ec4051e110a9ff8
Signed-off-by: Kim Jee Hyeok <jihyeok13.kim@samsung.com>
9 years ago[SSM] Fix model unregistration problem
jk13 [Mon, 17 Nov 2014 11:09:58 +0000 (20:09 +0900)]
[SSM] Fix model unregistration problem

Problem: If try to unregister registered model,
         unable to find registered model because of key mismatch.

How: Use proper key token to find registered model

Change-Id: Ib66242a4532e6a5fd8ced8e232fea26672347880
Signed-off-by: Kim Jee Hyeok <jihyeok13.kim@samsung.com>
9 years ago[SSM] Remove global mutex
jk13 [Mon, 17 Nov 2014 11:09:02 +0000 (20:09 +0900)]
[SSM] Remove global mutex

Problem: global mutex is not necessary
          while initializing platform.

How: Remove global mutex class and references.

Change-Id: I8972c6eb7d67dbd91c5c8638bec22fe83f83ef43
Signed-off-by: Kim Jee Hyeok <jihyeok13.kim@samsung.com>
9 years agoSupporting Java Plugin and making plugin manager as a library
junho13.lee [Mon, 17 Nov 2014 10:31:24 +0000 (19:31 +0900)]
Supporting Java Plugin and making plugin manager as a library

1) Cleaned unnecsssary files.

2) Changed plugin manager to support C/C++ and Java Plugin. Java plugin manager is not completed yet.

   This commit only have template code for Java.

3) Created plugin manager as a separate library(libpm.a) to be linked by application directly.

   And separated plugin manager implementation as shared library(libpmimpl.so) to support out-proc mode with same libpm.a in the future.

Change-Id: I5a80faa0546da1832e15a75dacc7f916faedd868
Signed-off-by: Lee Jun Ho <junho13.lee@samsung.com>
9 years agoAdding PCF() wrappers to OC_LOG() calls that were missing in the stack.
Joseph Morrow [Sun, 16 Nov 2014 18:45:25 +0000 (13:45 -0500)]
Adding PCF() wrappers to OC_LOG() calls that were missing in the stack.

By ensuring all calls to OC_LOG() wrap their strings with PCF(), we're
ensuring log statements don't take up program memory on lite platforms.

Change-Id: I1aeba972a539ea89d6862d402ee15cf286fbc860
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>