platform/upstream/iotivity.git
10 years agoUpdated example program.
Erich Keane [Wed, 8 Oct 2014 16:18:13 +0000 (09:18 -0700)]
Updated example program.

Change-Id: I02d9a652a1b80ec7eebe0dde1039dae7b5dbdbec

10 years agoMerge "Fix to remove quotes around array of strings as attribute value. Patch 2:...
Erich Keane [Wed, 8 Oct 2014 01:41:36 +0000 (18:41 -0700)]
Merge "Fix to remove quotes around array of strings as attribute value. Patch 2: Fixed same for array of bool Change-Id: Ib732ac8aff643cc579f57aafee27dee39b2f33f7"

10 years agoFix to remove quotes around array of strings as attribute value.
Sudarshan Prasad [Wed, 8 Oct 2014 01:22:35 +0000 (18:22 -0700)]
Fix to remove quotes around array of strings as attribute value.
Patch 2:
Fixed same for array of bool
Change-Id: Ib732ac8aff643cc579f57aafee27dee39b2f33f7

10 years agoChanges in C++ for vendor specific header options to be sent from client to server...
Sudarshan Prasad [Wed, 1 Oct 2014 02:01:06 +0000 (19:01 -0700)]
Changes in C++ for vendor specific header options to be sent from client to server and vice-versa
Patch 2:
Code clean up
Fixes for sending header options from client to server
Patch 3:
Added additional comments;
Addressed review comments, added more comments.
Added implementation for sending header options from server to client.
Updated related sample files.
Added comments
Rebased with master
Completed additional changes for building.
Patch 4:
Removed unnecessary statements in makefile.

Change-Id: Ie984051615632263a0f653dc5a1347f8b50dae10

10 years agoFixing returned error codes in OCProcessPresence.
Yamin S Al-mousa [Mon, 6 Oct 2014 23:52:15 +0000 (16:52 -0700)]
Fixing returned error codes in OCProcessPresence.

Change-Id: I1976a240bdd440708acfc4e10bfc0bc06437c35a

10 years agoChanged std::mutex to std::recursive_mutex in the client/server wrappers. This will...
Erich Keane [Thu, 2 Oct 2014 21:47:17 +0000 (14:47 -0700)]
Changed std::mutex to std::recursive_mutex in the client/server wrappers.  This will allow us to call create/get/put/etc from the entity handler\!

Added the simpleclient/simpleserver changes from Sashi's review.  Should be able to use them to test post.

Change-Id: I3e96e0a1915e4da0e4ce5880db0b00c6dd73f247

10 years agoMake exception and error handling more consistent through the top-level API.
Erich Keane [Mon, 6 Oct 2014 17:50:47 +0000 (10:50 -0700)]
Make exception and error handling more consistent through the top-level API.

Following up on Sudarshan's comments.

Change-Id: I8e19a89952f5235abbab43f1eb266604b5a4f1ac

10 years agoAdd README to ocicuc; add small_example near-minimal demo program;
Jesse Williamson [Fri, 3 Oct 2014 22:15:14 +0000 (15:15 -0700)]
Add README to ocicuc; add small_example near-minimal demo program;
Miscellaneous small fixes.

Change-Id: I8fc65b8eca5c05e231c2820ccdb8ca8237eb084e

10 years agoMerge "1.Optimization to reduce number of strlen() calls. 2. Removed the extra blank...
Erich Keane [Fri, 3 Oct 2014 20:20:28 +0000 (13:20 -0700)]
Merge "1.Optimization to reduce number of strlen() calls. 2. Removed the extra blank line. 3. '?' is no longer considered a part of the query Change-Id: Ieabc1352a4cccc504ae1caac59b154aa7a9c0997"

10 years ago1.Optimization to reduce number of strlen() calls.
Omkar Hegde [Fri, 3 Oct 2014 18:19:52 +0000 (11:19 -0700)]
1.Optimization to reduce number of strlen() calls.
2. Removed the extra blank line.
3. '?' is no longer considered a part of the query
Change-Id: Ieabc1352a4cccc504ae1caac59b154aa7a9c0997

10 years agoMerge "Added file describing artifact locations from all build processes. Right now...
Erich Keane [Fri, 3 Oct 2014 16:18:03 +0000 (09:18 -0700)]
Merge "Added file describing artifact locations from all build processes. Right now, it only describes artifact locations that the buildScript.mk file outputs after being run. However, this will be updated to include all arduino due targets, as well the additional arduino mega wifi target."

10 years agoMerge "Arduino Due needs to use DWORD to read address of strings stored in PROGMEM"
Erich Keane [Fri, 3 Oct 2014 16:16:09 +0000 (09:16 -0700)]
Merge "Arduino Due needs to use DWORD to read address of strings stored in PROGMEM"

10 years agoAdded file describing artifact locations from all build processes. Right
Joseph Morrow [Thu, 2 Oct 2014 22:14:16 +0000 (18:14 -0400)]
Added file describing artifact locations from all build processes. Right
now, it only describes artifact locations that the buildScript.mk file
outputs after being run. However, this will be updated to include
all arduino due targets, as well the additional arduino mega wifi target.

Patch 2: Added note in README to refer to artifact_output_locations.txt
file.

Change-Id: I7a7f5ed639c27457bb495891723ca0fa344e2adb

10 years agoMerge "Tech writer reviewed edits for programmer's guide"
William Dieter [Fri, 3 Oct 2014 13:30:43 +0000 (06:30 -0700)]
Merge "Tech writer reviewed edits for programmer's guide"

10 years agoArduino Due needs to use DWORD to read address of strings stored in PROGMEM
Sachin Agrawal [Thu, 2 Oct 2014 22:57:44 +0000 (15:57 -0700)]
Arduino Due needs to use DWORD to read address of strings stored in PROGMEM

Change-Id: Ie01b61df3fecfa12f64d0acfdfdf6f1bd5f8f581

10 years agoMerge "Added mechanism to set URI in the regular entity handler's request. This allow...
Erich Keane [Thu, 2 Oct 2014 21:50:19 +0000 (14:50 -0700)]
Merge "Added mechanism to set URI in the regular entity handler's request. This allows app's entity handler to retrieve the URI of resource from a request."

10 years agoTech writer reviewed edits for programmer's guide
shamit patel [Wed, 1 Oct 2014 20:07:52 +0000 (15:07 -0500)]
Tech writer reviewed edits for programmer's guide

Change-Id: Ia8703d6017105b819395edfba378521848e56ea1
Signed-off-by: shamit patel <shamit.patel@intel.com>
10 years agoCancel threads before exiting in
Doug Hudson [Thu, 2 Oct 2014 21:10:44 +0000 (17:10 -0400)]
Cancel threads before exiting in
csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp and ocservercoll.cpp.
If threads are not canceled before exiting program, valgrind shows lost bytes.
While not really a stack problem, it could be distracting while trying to
use valgrind to find future memory leaks in the stack.

Change-Id: I653916211d6115381fae33cf95338c83b395d6fe

10 years agoAdded mechanism to set URI in the regular entity handler's request.
Sudarshan Prasad [Thu, 2 Oct 2014 20:10:10 +0000 (13:10 -0700)]
Added mechanism to set URI in the regular entity handler's request.
This allows app's entity handler to retrieve the URI of resource from a request.

Patch 2:
Addressed review comments - Added lock before map operation

Change-Id: Iaa5cad56580046bc05efc974d4a7e65213856bfd

10 years agoMerge "IOT-57 fix. We were mis-assigning a pointer during construction"
Erich Keane [Thu, 2 Oct 2014 18:15:20 +0000 (11:15 -0700)]
Merge "IOT-57 fix.  We were mis-assigning a pointer during construction"

10 years agoIOT-57 fix. We were mis-assigning a pointer during construction
Erich Keane [Thu, 2 Oct 2014 18:07:32 +0000 (11:07 -0700)]
IOT-57 fix.  We were mis-assigning a pointer during construction

Change-Id: Ifc2301b6b7a9146940290c00d1fb13568e8472a9

10 years agoMakefile changes req'd for a global build script. Also, global build
Joseph Morrow [Thu, 2 Oct 2014 17:48:45 +0000 (13:48 -0400)]
Makefile changes req'd for a global build script. Also, global build
script implementation "buildScript.mk." Updated base README to reflect
the options and requirements for running this build script.

Patch 2: Edited makefiles so that developers CAN continue to use the build
processes they're used to. Also added 'all_dev' target that will build as
much of everything the build server can (including OCICUC) to prevet
regression in the build process as much as possible with a full-blown
build script.

Patch 3: Had to edit oc_logger makefile to support the new directory output
structure from the edits of this changeset. Also took care of issues
that Erich pointed out.

Patch 4: Added notes to README to state what is NOT being built by the
current iteration of buildScript.mk. Also edited lines of README that Doug
had mentioned needed updated in Patch 3.

Patch 5: Edited mistype in README and edited csdk/makefile as suggested by
Sachin.

Note: Arduino Due is not a part of the build script process.  This changeset
needs to be verified on the build server and put in place as the sole build
process. Once this is done, Support for building the Arduino Due will go in
place. Also, Ethernet Vs. Wifi build support will go in place at that time.
Right now everything is Ethernet.

Change-Id: Ie9938d9f3069aff1858141565dc66b4e2ece9e98

10 years agoFixed upsets in C Stack that caused breakage in the Arduino Build.
Joseph Morrow [Wed, 1 Oct 2014 21:56:01 +0000 (17:56 -0400)]
Fixed upsets in C Stack that caused breakage in the Arduino Build.

Change-Id: I6462963404db66d9c8af7543269d02d5591c718c

10 years agoRelease notes for Sept 30, 2014 release.
Sudarshan Prasad [Wed, 1 Oct 2014 08:26:37 +0000 (01:26 -0700)]
Release notes for Sept 30, 2014 release.
Patch 2:
Review comments addressed
Change-Id: Ifa00dee2d1e79d285a35fe750a92b9cba3ebe073

10 years agoMerge "1 Bug fix to check for length of uri and query separately. 2 Addressed the...
Erich Keane [Wed, 1 Oct 2014 08:05:28 +0000 (01:05 -0700)]
Merge "1 Bug fix to check for length of uri and query separately. 2 Addressed the code review feedback. No longer using strtok, moved check logic to separate function. 3 Optimized the code to use strlen only once. 4. Fixed Build failure"

10 years ago1 Bug fix to check for length of uri and query separately.
Vijay [Wed, 1 Oct 2014 07:49:17 +0000 (00:49 -0700)]
1 Bug fix to check for length of uri and query separately.
2 Addressed the code review feedback. No longer using strtok,
moved check logic to separate function.
3 Optimized the code to use strlen only once.
4. Fixed Build failure

Change-Id: I1d1c8ad39716a93dc32196e110d5a8f1df2ee959

10 years agoFix in makefile to build fridgeclient and fridgeserver samples
Sudarshan Prasad [Wed, 1 Oct 2014 07:22:31 +0000 (00:22 -0700)]
Fix in makefile to build fridgeclient and fridgeserver samples

Change-Id: I1b42d33c6dc3b77e25579a6370b9bf8327edaa08

10 years ago1. Supporting POST operation in C Stack.
Sashi Penta [Wed, 1 Oct 2014 07:01:06 +0000 (00:01 -0700)]
1. Supporting POST operation in C Stack.
2. Supporting POST operation in CPP Stack.
3. Updates to C sample application
4. Rebase
5. Fixed build issue.

Change-Id: I00b70a5eb8f4c1c911416d703e3c739b2a80ff7b

10 years agoMerge "C++ programer's guide"
William Dieter [Wed, 1 Oct 2014 03:40:19 +0000 (20:40 -0700)]
Merge "C++ programer's guide"

10 years agoThis commit to support exposing vendor specific options to application:
Yamin S Al-mousa [Wed, 1 Oct 2014 00:48:32 +0000 (17:48 -0700)]
This commit to support exposing vendor specific options to application:

1) Define a structure defining the vendor specific options
2) Pass an array of vendor specific options needed with the call to OCDoResource
3) Vendor specific header options are checked against the range of acceptable vendor specific header options
4) Vendor specific header options are added to the pdu being sent
5) Vendor specific header options are parsed and added to OCEntityHandlerRequest and OCClientResponse structs
6) Rebased on to master
7) Adding a test case to occlient for sending vendor specific option
8) Adding The number of options to be sent and the ones received, also adding this infor to OCEntityHandlerRequest and OCClientResponse structs
9) Rebased on to master

Change-Id: I5d4c56028bf510fba57ad4fc440565fd4b87ca31

10 years agoMerge "Added URI parameter for Device Entity Handler."
Erich Keane [Wed, 1 Oct 2014 00:29:36 +0000 (17:29 -0700)]
Merge "Added URI parameter for Device Entity Handler."

10 years agoMerge "Modified makefiles so that each makefile could build its own dependencies...
Erich Keane [Tue, 30 Sep 2014 23:38:35 +0000 (16:38 -0700)]
Merge "Modified makefiles so that each makefile could build its own dependencies or build only itself. Fixed .gitignore and makefiles base on review comments. Rebased as requested by Erich. Added fix to building with boost Cleaned up .gitignore"

10 years agoModified makefiles so that each makefile could build its own dependencies or build...
Thuyen Tran [Wed, 24 Sep 2014 00:00:12 +0000 (17:00 -0700)]
Modified makefiles so that each makefile could build its own dependencies or build only itself.
Fixed .gitignore and makefiles base on review comments.
Rebased as requested by Erich.
Added fix to building with boost
Cleaned up .gitignore

Change-Id: I0829400e74694f2a7f8271ea72f93e7cd7be000c

10 years agoAdded URI parameter for Device Entity Handler.
Sashi Penta [Tue, 30 Sep 2014 07:35:52 +0000 (00:35 -0700)]
Added URI parameter for Device Entity Handler.

Change-Id: If37e64f6578b6a8eccee9b9ea43690123d6ac2aa

10 years agoAPIs to setNULL and check for NULL in OCRepresenation
Sashi Penta [Tue, 30 Sep 2014 08:44:54 +0000 (01:44 -0700)]
APIs to setNULL and check for NULL in OCRepresenation

Change-Id: I3db71123c1362efaf7e641a845fa737057d56da5

10 years agoMerge "1. Default device entity handler implementation in Cpp Stack. 2. Addressed...
Erich Keane [Mon, 29 Sep 2014 23:10:24 +0000 (16:10 -0700)]
Merge "1. Default device entity handler implementation in Cpp Stack. 2. Addressed review comments."

10 years agoMerge "IOT-36 (Leak 2) : Fixing memory leaks Patch 2 : Taking care of some review...
Erich Keane [Mon, 29 Sep 2014 23:04:13 +0000 (16:04 -0700)]
Merge "IOT-36 (Leak 2) : Fixing memory leaks Patch 2 : Taking care of some review comments. Patch 3 : Update in occoaphelper.c."

10 years ago1. Default device entity handler implementation in Cpp Stack.
Sashi Penta [Thu, 25 Sep 2014 01:48:57 +0000 (18:48 -0700)]
1. Default device entity handler implementation in Cpp Stack.
2. Addressed review comments.

Change-Id: I8745b604d62d9c2e49fce1cedb3af185ae2f5f5b

10 years agoMerge "Fix cosmetic regression bug reported by Habteab and Mark. https://01.org/jira...
Erich Keane [Mon, 29 Sep 2014 18:40:44 +0000 (11:40 -0700)]
Merge "Fix cosmetic regression bug reported by Habteab and Mark. https://01.org/jira/browse/IOT-54"

10 years agoMerge "Logging effort created a regression in InProcClientWrapper that caused get...
Erich Keane [Mon, 29 Sep 2014 18:01:44 +0000 (11:01 -0700)]
Merge "Logging effort created a regression in InProcClientWrapper that caused get/observe to not work.  This fixes said regression"

10 years agoFix cosmetic regression bug reported by Habteab and Mark.
Jesse Williamson [Mon, 29 Sep 2014 17:54:59 +0000 (10:54 -0700)]
Fix cosmetic regression bug reported by Habteab and Mark.
https://01.org/jira/browse/IOT-54

Change-Id: I6b7a946111800848249fea2258dff3253c7a5048

10 years agoMerge "Simultaneous ACK and RST message received at Server causes SegFaults"
Erich Keane [Mon, 29 Sep 2014 17:51:27 +0000 (10:51 -0700)]
Merge "Simultaneous ACK and RST message received at Server causes SegFaults"

10 years agoMerge "New APIs : hasAttribute, numberOfAttributes, erase in OCRepresentation."
Erich Keane [Mon, 29 Sep 2014 17:46:55 +0000 (10:46 -0700)]
Merge "New APIs : hasAttribute, numberOfAttributes, erase in OCRepresentation."

10 years agoLogging effort created a regression in InProcClientWrapper that caused get/observe...
Erich Keane [Mon, 29 Sep 2014 17:28:38 +0000 (10:28 -0700)]
Logging effort created a regression in InProcClientWrapper that caused get/observe to not work.  This fixes said regression

Change-Id: Id6ac04d3aec3ee1f9f0d93e2cfe06cc65324d1b5

10 years agoIOT-36 (Leak 2) : Fixing memory leaks
Sachin Agrawal [Mon, 29 Sep 2014 16:08:08 +0000 (09:08 -0700)]
IOT-36 (Leak 2) : Fixing memory leaks
Patch 2 : Taking care of some review comments.
Patch 3 : Update in occoaphelper.c.

Change-Id: I9bba4039e37cc94b0acad061a68d3f1cec427372

10 years agoSimultaneous ACK and RST message received at Server causes SegFaults
Sachin Agrawal [Mon, 29 Sep 2014 04:34:34 +0000 (21:34 -0700)]
Simultaneous ACK and RST message received at Server causes SegFaults

Change-Id: I9f609c926ed80bba940a8ba5533cea755c181be6

10 years agoNew APIs : hasAttribute, numberOfAttributes, erase in OCRepresentation.
Sashi Penta [Fri, 26 Sep 2014 22:04:08 +0000 (15:04 -0700)]
New APIs : hasAttribute, numberOfAttributes, erase in OCRepresentation.

Change-Id: Ia6df616bdd73d7e73a34563896dd3c5d941b9a8b

10 years agoc_logger implementation
Erich Keane [Wed, 24 Sep 2014 21:35:05 +0000 (14:35 -0700)]
c_logger implementation
Patch 2: rebase on master
Patch 3: adding license headers to missing files
Patch 4: rebase on master
Change-Id: I8c3d16000432df1de4b08633142ecc01ee423e0d

10 years ago1. Modify libcoap to use OCMalloc and OCFree.
Doug Hudson [Fri, 26 Sep 2014 15:18:51 +0000 (11:18 -0400)]
1.  Modify libcoap to use OCMalloc and OCFree.
2.  Modify uri.c to call coap_free instead of free.

Change-Id: If404da557bf3f2191ad1036b9a6ac91e10a96ca9

10 years agoMerge "Remove hard-coded IP address from the samples. removed duplicate call to OCBui...
Erich Keane [Thu, 25 Sep 2014 21:23:49 +0000 (14:23 -0700)]
Merge "Remove hard-coded IP address from the samples. removed duplicate call to OCBuildIPv4Address OCInitCoAP."

10 years agoRemove hard-coded IP address from the samples.
Sashi Penta [Wed, 24 Sep 2014 19:06:12 +0000 (12:06 -0700)]
Remove hard-coded IP address from the samples.
removed duplicate call to OCBuildIPv4Address OCInitCoAP.

Change-Id: I51ed3ff71997069e375043e37946180223a60141

10 years agoMerge "IOT-36 : Fixing memory leaks"
Erich Keane [Thu, 25 Sep 2014 16:24:14 +0000 (09:24 -0700)]
Merge "IOT-36 : Fixing memory leaks"

10 years agoMerge "1. Create csdk/ocmalloc directory 2. Create ocmalloc.c and ocmalloc.h 3. Remov...
Erich Keane [Thu, 25 Sep 2014 16:23:53 +0000 (09:23 -0700)]
Merge "1. Create csdk/ocmalloc directory 2. Create ocmalloc.c and ocmalloc.h 3. Remove OCMalloc and OCFree functions from ocstack.c and ocstack.h 4. Modify stack source modules to include ocmalloc.h 5. Modify stack makefiles to use ocmalloc.c and ocmalloc.h 6. Add doxygen function comments to ocmalloc.h 7. Remove #include from within #ifdef __cplusplus block 8. Add comment to ocmalloc.h describing the intention of the module."

10 years agoMerge "Default device entity handler implementation in C Stack."
Erich Keane [Wed, 24 Sep 2014 23:18:07 +0000 (16:18 -0700)]
Merge "Default device entity handler implementation in C Stack."

10 years ago1. Create csdk/ocmalloc directory
Doug Hudson [Wed, 24 Sep 2014 21:36:57 +0000 (17:36 -0400)]
1. Create csdk/ocmalloc directory
2. Create ocmalloc.c and ocmalloc.h
3. Remove OCMalloc and OCFree functions from ocstack.c and ocstack.h
4. Modify stack source modules to include ocmalloc.h
5. Modify stack makefiles to use ocmalloc.c and ocmalloc.h
6. Add doxygen function comments to ocmalloc.h
7. Remove #include from within #ifdef __cplusplus block
8. Add comment to ocmalloc.h describing the intention of the module.

Change-Id: I453d4ced530d7539f8b00b22b3f651327ea6a42c

10 years agoIOT-36 : Fixing memory leaks
Sachin Agrawal [Wed, 24 Sep 2014 21:22:47 +0000 (14:22 -0700)]
IOT-36 : Fixing memory leaks

Change-Id: I8ed2d398d79c43abf4d0131232c88f9ae8890f8f

10 years agoDefault device entity handler implementation in C Stack.
Sashi Penta [Wed, 24 Sep 2014 21:07:08 +0000 (14:07 -0700)]
Default device entity handler implementation in C Stack.

Patch 1-3: Implementation.

Patch 4-5: Review comments from Doug and Joey.

Patch 6: Joey -> Resolved 'defaultDeviceHandler' declaration
down to one instance.

Patch 7: Reverted Patch 6.

Patch 8: Removed the declaration from ocresource.c

Change-Id: Ic1a47f65ae6772ecf417fa5f7dcb384db029a4b7

10 years agoFridge example which shows a nice set of the std::bind functionality as well as how...
Erich Keane [Thu, 18 Sep 2014 22:56:30 +0000 (15:56 -0700)]
Fridge example which shows a nice set of the std::bind functionality as well as how to use the ResourceObject creation.  Note that this will not function correctly without the csdk fix for resource commas.

Patch 2: Resolve Sudarshan's fixes
Patch 3: rebase & remove previous version of code
Change-Id: Ic7c5f3ae5da40cd8e6e82692e0f5e3b878f34489

10 years agoMerge "Add const modifier"
Erich Keane [Wed, 24 Sep 2014 16:20:14 +0000 (09:20 -0700)]
Merge "Add const modifier"

10 years agoAdd const modifier
Caiwen Zhang [Wed, 24 Sep 2014 20:11:26 +0000 (04:11 +0800)]
Add const modifier

const modifier is required for new avr-gcc compiler

Change-Id: I1a7b4b4059632e0c6ea83a65d7514785575416cf

10 years agouse of const reference where possible.
Sashi Penta [Tue, 23 Sep 2014 23:38:36 +0000 (16:38 -0700)]
use of const reference where possible.

Change-Id: I4f47fdc385f58f2e52ce10bffa68ae0910e496c9

10 years agoMerge "1. arrays in OCRepresentation 2. Fixed review comments from Jesse. 3. Refactor...
Erich Keane [Tue, 23 Sep 2014 22:49:15 +0000 (15:49 -0700)]
Merge "1. arrays in OCRepresentation 2. Fixed review comments from Jesse. 3. Refactored the code to get JSON from vector."

10 years agoMerge "JSON Object implementation"
Erich Keane [Tue, 23 Sep 2014 22:49:04 +0000 (15:49 -0700)]
Merge "JSON Object implementation"

10 years ago1. arrays in OCRepresentation
Sashi Penta [Tue, 23 Sep 2014 07:06:07 +0000 (00:06 -0700)]
1. arrays in OCRepresentation
2. Fixed review comments from Jesse.
3. Refactored the code to get JSON from vector.

Change-Id: I1f31f8f0c242f53f56cf50f9d9e781d8ed770f8c

10 years agoJSON Object implementation
Sashi Penta [Fri, 19 Sep 2014 07:06:05 +0000 (00:06 -0700)]
JSON Object implementation

1. Support for JSON object in OCRepresentation.
2. Code refactor for JSON composition in various parts of the stack into one place (OCRepresenation).
3. Similar code refactoring for JSON parsing needs to be done. I will revisit when we look into
   JSON parse library alternatives.
4. Implemented correct JSON composition. Earlier we were returning strings for all the json types.
   Now strings are only used for string types and JSON objects.
5. garageserver.cpp and garageclient.cpp examples to explain the user of JSON object with in
   the representation.

Change-Id: I9461db811c7b5e3b827d5704cde489aa2005e291

10 years agoC++ programer's guide
shamit patel [Mon, 22 Sep 2014 22:59:50 +0000 (17:59 -0500)]
C++ programer's guide

Change-Id: Iab4d32ae3776cfbbe0f4c9947c71d11aaf605634

10 years agoNon-discoverable resources cause bad JSON (trailing comma). By putting the comma...
Erich Keane [Mon, 22 Sep 2014 18:16:33 +0000 (11:16 -0700)]
Non-discoverable resources cause bad JSON (trailing comma).  By putting the comma generation first, we buy ourselves some room

Change-Id: Ie270c22e0f61c657f15ecf45fcbdb96de72d495f

10 years agoA fix for a bug reported by Omkar and Vijay:
Yamin S Al-mousa [Fri, 19 Sep 2014 17:56:47 +0000 (10:56 -0700)]
A fix for a bug reported by Omkar and Vijay:

The check for required uri lenght should consider that it includes the uri and query.

Change-Id: I1ca3e4709de02cb4f5217aba5133b8aa2bc4ee14

10 years agoMakefile in ocicuc is not cleaning up all the object files.
Sashi Penta [Fri, 19 Sep 2014 09:15:50 +0000 (02:15 -0700)]
Makefile in ocicuc is not cleaning up all the object files.

Change-Id: Ia1d198b96b61a82c07c069b4545ad40460cf2f4c

10 years agoMerge "Revert "Replace to_string and stoi""
Erich Keane [Thu, 18 Sep 2014 17:32:45 +0000 (10:32 -0700)]
Merge "Revert "Replace to_string and stoi""

10 years agoRevert "Replace to_string and stoi"
Erich Keane [Thu, 18 Sep 2014 17:32:32 +0000 (10:32 -0700)]
Revert "Replace to_string and stoi"

We have decided that sprintf is not stable/future proof enough, so we are going to revert this change (and the other one) and investigate what it would take to make android-only implementations of tostring and stoi

This reverts commit dcfe2eb3bee0296aee3cc4453f4237c784251671.

Change-Id: I82bb37e42aa5b6809bdf6a6522dac678ba74aac0

10 years agoReplace to_string and stoi
Caiwen Zhang [Thu, 18 Sep 2014 17:56:05 +0000 (01:56 +0800)]
Replace to_string and stoi

Part of C++11 features aren't supported by Android NDK, includes
to_string and stoi. Replace them with snprintf and atoi.

Change-Id: I6edda1856ab34c0e1dcc23daef0b105875a09189

10 years agoMerge "Fixing Arduino compilation error"
Erich Keane [Thu, 18 Sep 2014 16:49:57 +0000 (09:49 -0700)]
Merge "Fixing Arduino compilation error"

10 years agoMerge "Avoid redefine 'NDEBUG'"
Erich Keane [Thu, 18 Sep 2014 16:49:22 +0000 (09:49 -0700)]
Merge "Avoid redefine 'NDEBUG'"

10 years agoAvoid redefine 'NDEBUG'
Caiwen Zhang [Thu, 18 Sep 2014 17:18:50 +0000 (01:18 +0800)]
Avoid redefine 'NDEBUG'

Change-Id: I1a8e1c5b0a8b7aa0c1ab19e292485e4e20ab90a5

10 years agoMerge "Fixed warning (control reaching end of non void function) in OCPlatform.cpp"
Erich Keane [Thu, 18 Sep 2014 16:48:45 +0000 (09:48 -0700)]
Merge "Fixed warning (control reaching end of non void function) in OCPlatform.cpp"

10 years agoFixing Arduino compilation error
Sachin Agrawal [Thu, 18 Sep 2014 15:39:57 +0000 (08:39 -0700)]
Fixing Arduino compilation error

Change-Id: I030f3d66b54ab61bd866f434e3cadfee30ff4ac7

10 years agoFixed warning (control reaching end of non void function) in OCPlatform.cpp
Sudarshan Prasad [Thu, 18 Sep 2014 02:18:38 +0000 (19:18 -0700)]
Fixed warning (control reaching end of non void function) in OCPlatform.cpp

Change-Id: Ibab82216537c0927794bfb57dbe9e97f52b4d028

10 years agoMerge "Support for notifying specific observers using observation Id"
Erich Keane [Wed, 17 Sep 2014 21:07:36 +0000 (14:07 -0700)]
Merge "Support for notifying specific observers using observation Id"

10 years agoAdded release notes for Sept 17th, 2014 release.
Erich Keane [Wed, 17 Sep 2014 21:01:16 +0000 (14:01 -0700)]
Added release notes for Sept 17th, 2014 release.

Change-Id: I3bf64deb84e54b2c9306c03688ff5d8be9fe4053

10 years agoSupport for notifying specific observers using observation Id
Vijay [Wed, 17 Sep 2014 20:48:56 +0000 (13:48 -0700)]
Support for notifying specific observers using observation Id

1. Initial code changes
2. Combine GET & observe registration calls to entity handler into a single call; support for CON messages in NotifySpecificObservers; updates sample server app
3. Added the support for immediate observe cancelation in OCCancel
4. Fixed the new interface to OCCancel in C++ layer
5. A temp solution for the case when observation sequence number wraps around.
6. Merging with Yamin's changes
7. Changed OCNotifyObservers to OCNotifyAllObservers
8. Build issue
9. Another Merge to support calling the entity handler when deregister an observer
10. Rebase & CPP Changes from Sudarshan and Sashi to support Notify specific observers.
11. Command line argument options for simpleserver (so it can choose between all observers or specific observers)
12. CPP bugfix.
13. Fixed review comments for CPP.
14. Changed COAP_DEFAULT_RESPONSE_TIMEOUT to 2 and all the sample applications to sleep accordingly.
15. Fixed review comment for new line.
16. Fixed review commend for line exceed.
17. Response to comments received on patch 11
18. Header file comments updated

Change-Id: I03aa7ab2a580899441b70bd2a76cca05575b192a

10 years agoRemoved <oic-resource>/csdk/android and <oic-resoruce>/csdk/controller plus <oic...
Erich Keane [Tue, 16 Sep 2014 21:31:56 +0000 (14:31 -0700)]
Removed <oic-resource>/csdk/android and <oic-resoruce>/csdk/controller plus <oic-resource>/csdk/libcoap-4.1.1/config.log and config.status

PatchSet 2: Erich Rebased for submission sake
Change-Id: I0d5a355924aca94847aa70f8adcb10c700164cdc
Signed-off-by: Charunethran PG <charunethran.panchalam.govindarajan@intel.com>
10 years agoMerge "Partial Implementation of US1574:"
Erich Keane [Tue, 16 Sep 2014 20:58:10 +0000 (13:58 -0700)]
Merge "Partial Implementation of US1574:"

10 years agoPartial Implementation of US1574:
Sashi Penta [Wed, 10 Sep 2014 22:19:16 +0000 (15:19 -0700)]
Partial Implementation of US1574:

OCRepresentation is now provides simpler interface to setValue and getValue from the applications.
Applications doesn't have to go through attributeMaps in OCRepresentation.
OCRepresentation now supports serialization/deserialization for primitive attributes (numbers, booleans and strings) so application doesn't have to deal with strings.

Change-Id: I09d323fc624d87c0b2a3c9b510935a6d5907a11b

10 years agoMerge "Removed extraneous comment. The callback process is triggered from a lower...
Erich Keane [Tue, 16 Sep 2014 18:02:38 +0000 (11:02 -0700)]
Merge "Removed extraneous comment. The callback process is triggered from a lower point in the stack than from here. The consideration written in comment here has already been taken care of, as per Yamin."

10 years agoMerge "IOT-48 : Updated makefiles for compiling OCStack with WiFi libraries for Ardui...
Erich Keane [Tue, 16 Sep 2014 18:02:15 +0000 (11:02 -0700)]
Merge "IOT-48 : Updated makefiles for compiling OCStack with WiFi libraries for Arduino 1.0.5 Patch 2 : Included suggestions provided in Review comments."

10 years agoMerge "Fixing a few warnings that we see coming out of the libcoap bits.h file."
Erich Keane [Tue, 16 Sep 2014 17:57:42 +0000 (10:57 -0700)]
Merge "Fixing a few warnings that we see coming out of the libcoap bits.h file."

10 years agoRemoved extraneous comment. The callback process is triggered from a
Joseph Morrow [Tue, 16 Sep 2014 17:56:57 +0000 (13:56 -0400)]
Removed extraneous comment. The callback process is triggered from a
lower point in the stack than from here. The consideration written in
comment here has already been taken care of, as per Yamin.

Change-Id: I982922f8c87b42385e358cfe91b24bfee5ffc17f

10 years agoRemove <ifaddrs.h>
Caiwen Zhang [Tue, 16 Sep 2014 18:16:41 +0000 (02:16 +0800)]
Remove <ifaddrs.h>

This header file is unnecessary. It will break android build as
android ndk doesn't have this file.

Change-Id: Iacd08868d1e426fe73d6b4c31d0c67ce38df9e69

10 years agoRemoving references to OCReflect that were left behind but didnt cause build issues
Erich Keane [Tue, 16 Sep 2014 17:50:13 +0000 (10:50 -0700)]
Removing references to OCReflect that were left behind but didnt cause build issues

Change-Id: I5480fa14d5ea4960b361d62a67563f45d1dbbfed

10 years agoIOT-48 : Updated makefiles for compiling OCStack with WiFi libraries for Arduino...
Sachin Agrawal [Tue, 16 Sep 2014 17:42:24 +0000 (10:42 -0700)]
IOT-48 : Updated makefiles for compiling OCStack with WiFi libraries for Arduino 1.0.5
Patch 2 : Included suggestions provided in Review comments.

Change-Id: I70190ce85efcaf3b560687bff1ccace407778e44

10 years agoFixing a few warnings that we see coming out of the libcoap bits.h file.
Erich Keane [Mon, 15 Sep 2014 21:15:43 +0000 (14:15 -0700)]
Fixing a few warnings that we see coming out of the libcoap bits.h file.

Essentially, the result of the bit-shift on a uint8_t is always upconverted to a signed int despite it being impossible for it to be anything greater than 5 bits long (8 bits, shifted 3 more).  We cast to unsigned size_t to prevent the warning and to prevent unsigned vs signed comparison.

Change-Id: I47d05611e75e55240b55b800c9370dbc019aedd2

10 years agoPatch 1: Sending RST in response to the receipt of a notification from a server
Joseph Morrow [Mon, 15 Sep 2014 21:02:17 +0000 (17:02 -0400)]
Patch 1: Sending RST in response to the receipt of a notification from a server
that is not a presence nor an observe notifcation AND there is not
a callback associated.

Patch 2: Rebase

Patch 3: Changed debug print out message.

Patch 4: Oops. I had too much message in my log message.

Change-Id: If8f949827e9accf0dc45b69a5568960578b388f5

10 years agoMerge "Patch 1: Arduino pdu malloc fix."
Erich Keane [Mon, 15 Sep 2014 17:50:33 +0000 (10:50 -0700)]
Merge "Patch 1: Arduino pdu malloc fix."

10 years agoMerge "Updated Arduino sample app to reflect the current SRAM available. \n This...
Erich Keane [Mon, 15 Sep 2014 15:33:19 +0000 (08:33 -0700)]
Merge "Updated Arduino sample app to reflect the current SRAM available. \n This will help in debugging Arduino crash issues in low SRAM scenarios Patch 2 : Updated code to execute only for MEGA2560 boards."

10 years agoPatch 1: Arduino pdu malloc fix.
Joseph Morrow [Fri, 12 Sep 2014 17:17:46 +0000 (13:17 -0400)]
Patch 1: Arduino pdu malloc fix.

Patch 2: Rebase

Patch 3: Changed implementation of fix to simply change size of
COAP_MAX_PDU_SIZE to 320 for Arduino only. This will stay the same
going forth, but there is an uncaught case that can only be fixed
in the next sprint(as there is not enough time)-- We must implement
blockwise transfer so that a PDU larger than 320 is properly
handled (i.e. broken up into chunks of 320 or smaller). A Rally task
has already been created for Sprint 8 for this.

Patch 4: Meant to use "else" instead of "elif".

Change-Id: I4df20d28c821f6fc2c98a6bf3672331264978be5

10 years agoUpdated Arduino sample app to reflect the current SRAM available. \n This will help...
Sachin Agrawal [Fri, 12 Sep 2014 16:08:25 +0000 (09:08 -0700)]
Updated Arduino sample app to reflect the current SRAM available. \n This will help in debugging Arduino crash issues in low SRAM scenarios
Patch 2 : Updated code to execute only for MEGA2560 boards.

Change-Id: If130815b1f8eedd9373e68e7e144ef8713a2f2cb

10 years agoMerge "Revert "Doxygen run for *.h files""
Erich Keane [Thu, 11 Sep 2014 23:56:30 +0000 (16:56 -0700)]
Merge "Revert "Doxygen run for *.h files""

10 years agoRevert "Doxygen run for *.h files"
Erich Keane [Thu, 11 Sep 2014 23:56:19 +0000 (16:56 -0700)]
Revert "Doxygen run for *.h files"

We should never have committed generated files.  When necessary, Shamit can generate these himself.

This reverts commit fdaa9cd9e05732b5087f11dcb40c2c66cc3a73e6.

Change-Id: Ibeb9f036ddf421d0d3e0f3d509ab6d2d92477db4

10 years agoRemove unused variable
Thiago Macieira [Fri, 5 Sep 2014 01:21:00 +0000 (18:21 -0700)]
Remove unused variable

It's not used anywhere

Change-Id: I834b7e8f561e85dea45846d2bfe96ad90fed6ab8
Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>