Joseph Morrow [Fri, 5 Sep 2014 15:17:52 +0000 (11:17 -0400)]
Using the compiler that comes with Arduino 1.0.5, it
complains that the token in the async struct cannot
have a size of zero.
I fixed it, since it's the end of the struct, this is okay.
Patch 2: Updated with respect to Sachin's comment review.
Patch 3: When building in debug mode, the compiler that
comes with Arduino 1.0.5 complains about the tokens defined
in pdu.h as well. In this patch as well, also removed errors
found when building in debug. Rebased on Sachins changeset.
Change-Id: I568481562af2a614624608851def5bf5aa68287a
Sachin Agrawal [Fri, 5 Sep 2014 01:27:02 +0000 (18:27 -0700)]
Fixing broken TB stack due to compilation errors for Arduino platforms.
Change-Id: Id211b8f03ddb07dd8c50148ece513bd2548b447f
Wu Jiangbo [Wed, 3 Sep 2014 11:08:23 +0000 (19:08 +0800)]
OCResourceRespnse: JSON value should be wrapped in double quotes
C++ stack packages the JSON payload and send it as payload within CoAP.
And the JSON format said, "A string is a sequence of zero or more
Unicode characters, wrapped in double quotes, using backslash escapes."
Change-Id: I9641df115945dead2dcd41a08576047dcdd01d98
Sashi Penta [Wed, 3 Sep 2014 21:01:11 +0000 (14:01 -0700)]
Minor formatting fix for the release notes.
Change-Id: Ieee8839edbaef07ae5ab18efb81162c99d70d440
Sashi Penta [Wed, 3 Sep 2014 04:10:52 +0000 (21:10 -0700)]
Fixed a minor bug in C stack and minor cleanup from Presence Notification.
Release notes from Sudarhan, with minor comments from Sashi.
OCPlatform.h with better comments from Sudarshan.
Change-Id: Ie1950b6d3486e3a2314ac7428350f61bba20351f
Sashi Penta [Wed, 3 Sep 2014 03:17:01 +0000 (20:17 -0700)]
Includes C++ Presence Notification changes from Erich, Jesse, Sudarshan and Sashi.
Change-Id: I113cd2dc3051bace0d0111289184299e5fd21f87
Erich Keane [Wed, 3 Sep 2014 02:50:26 +0000 (19:50 -0700)]
Merge "Patch 1 (Yamin): This is where all work is merged from Sashi, Joey and myself"
Yamin S Al-mousa [Wed, 3 Sep 2014 02:16:08 +0000 (19:16 -0700)]
Patch 1 (Yamin): This is where all work is merged from
Sashi, Joey and myself
Patch 2 (Sashi): Looks like some debugging printf work. Should
be removed. Sashi?
Patch 3 (Joey): Applying changes as per review by Chanchala in parent
changeset Change-Id: I2625063e4a6bdfa53e3954310a060ea3c0ee5d3c
Patch 4 (Joey & Yamin): Squash all of Active Discovery and rebase
on to master.
Patch 5 (Joey): Cleaned up warnings and refactored merge conflicts
that caused build server to fail.
Patch 6 (Yamin): More debugging and restructuring... more work needed specifically for the TTL logic
Patch 7 and 8 (Yamin): Fixed TTL logic and presence cancelation, more clean up to come...
Patch 9: Added the random TTL logic and cleaned up.
Change-Id: I4bbd72e066ed4b50f4d2be52367844918a29823a
Jesse Williamson [Fri, 29 Aug 2014 23:53:30 +0000 (16:53 -0700)]
Checkpoint: monoprocess bug fixed-- need to improve CLI handling.
Change-Id: I73ad330df3716cda2f5907a62dc09478bc03fe5e
Erich Keane [Fri, 29 Aug 2014 16:27:09 +0000 (09:27 -0700)]
Merge "Updated Makefile to support different build targets. Removed delegating ctors (work-around non-conforming compiler). Configuration requires explicit ctor. Restructured client/server program; review fixes; hopefully extricated from the dangerous world of b0rked commits."
Jesse Williamson [Tue, 26 Aug 2014 19:49:54 +0000 (12:49 -0700)]
Updated Makefile to support different build targets.
Removed delegating ctors (work-around non-conforming compiler).
Configuration requires explicit ctor.
Restructured client/server program; review fixes; hopefully
extricated from the dangerous world of b0rked commits.
Change-Id: I68462b3d0306d969ba92b5e7affb515aebe03be3
Yamin S Al-mousa [Thu, 28 Aug 2014 01:02:52 +0000 (18:02 -0700)]
Partial fix for Jira issue IOT-24.
Upon a successful observe registration/dereg new return values have been added.
These values are for success cases and need to be considered along with OC_STACK_OK.
Patch set #2:
1) ObserveReq struct has a member holding the result of registering and observer
2) OCStackResult has only one success code possible
Change-Id: I3b6fc51d64e602b8dbbca85e0e669fd7d7d9f230
Patch Set #3:
1) responded to comments
2) rebased on master
Change-Id: I2ee4d6a641b9b17adf69efca5da75cf3a4e4d3b7
Patrick Lankswert [Thu, 28 Aug 2014 00:25:36 +0000 (17:25 -0700)]
Merge "Patch 1 :Added Arduino Due support Patch 2 :Modified code for review comments. Added more informative info in README files for Arduino Due builds. Fixed unit test makefiles to accomodate the 'sole' local.properties file. Patch 3 :Fixed compilation errors in unused tests.(Those test should be removed from the repo). This would make the Build Server stop complaining. Patch 4 (Joey): Rebased on "
Joseph Morrow [Wed, 27 Aug 2014 15:20:57 +0000 (11:20 -0400)]
Patch 1 :Added Arduino Due support
Patch 2 :Modified code for review comments.
Added more informative info in README files for Arduino Due builds.
Fixed unit test makefiles to accomodate the 'sole' local.properties file.
Patch 3 :Fixed compilation errors in unused tests.(Those test
should be removed from the repo). This would make the Build Server
stop complaining.
Patch 4 (Joey): Rebased on master.
Change-Id: Ib4a0e838a5519712bf3b0138e01abf74893593fb
clairiky [Tue, 26 Aug 2014 21:26:12 +0000 (14:26 -0700)]
Finished doing TODOs in ValidateQuery for container resources with default entity handler.
Updated Sashi's review.
Change-Id: I732bc7bf63acd7522051ce39a9f80c6a41df9b52
Joseph Morrow [Thu, 21 Aug 2014 21:04:55 +0000 (17:04 -0400)]
Adding API changes needed for Active Discovery in the TB Stack layer.
Change-Id: I8c457cccb2bbbfefedc6aa27a89bdc47ad7aa061
Joseph Morrow [Mon, 25 Aug 2014 19:23:30 +0000 (15:23 -0400)]
Fix for TB Unit Tests. This should make Jenkins build again.
Change-Id: I1dc0e13d9e2a56f5799f352d66b0916df869c738
William Dieter [Mon, 25 Aug 2014 17:12:01 +0000 (10:12 -0700)]
Merge "Applying a quick fix for "prog_char is deprecated" warning in Arduino. As 'prog_char' is completely removed in later versions of avr-gcc/g++, people with Ubuntu 14.04 won't be able to build Arduino out of the box because of this. This commit clears up some warnings AND allows Ubuntu 14.04 to build our stack for Arduino (However, the question as to whether we should update our versions of Ubuntu and/or Arduino are still up in the air.)."
Sachin Agrawal [Mon, 25 Aug 2014 07:43:06 +0000 (00:43 -0700)]
IOT-25 Jira Bug : RightShift on signed numbers have an undefined behavior. This caused send operations
to fail randomly on Arduino Mega boards.
Change-Id: I6b0a7f620b6ef35f67161d5ecb7521cbef4108c8
Sakthivel Samidurai [Mon, 25 Aug 2014 05:15:39 +0000 (22:15 -0700)]
Added helper function to escape a special character in a string.
Change-Id: Icdca0fe4fb1c959b374cd6afea57272576e86061
Joseph Morrow [Fri, 22 Aug 2014 21:43:36 +0000 (17:43 -0400)]
Applying a quick fix for "prog_char is deprecated" warning
in Arduino. As 'prog_char' is completely removed in later
versions of avr-gcc/g++, people with Ubuntu 14.04 won't be
able to build Arduino out of the box because of this. This
commit clears up some warnings AND allows Ubuntu 14.04 to
build our stack for Arduino (However, the question as to
whether we should update our versions of Ubuntu and/or
Arduino are still up in the air.).
Majorly, this enables Shamit to keep moving along. He is
currently making sure all of our documentation for building
the stack for Arduino is up to par. He will also be seeing
how far our current stack will take us (i.e. will it work on
other embedded devices without any further mods?).
Change-Id: I9a079b7211082e3d3fd418dd5162aaa606a8fc04
William Dieter [Fri, 22 Aug 2014 18:37:26 +0000 (11:37 -0700)]
Merge "Folks using sample apps get confused with error-prone code in samples. Fixing few issues here: 1. EH should copy the payload and not modify the payload pointer location. 2. EH should check the length of response payload before copying data into it. 3. Fixed getResult. 4. Updated payload to reflect our modified JSON format."
Sudarshan Prasad [Fri, 22 Aug 2014 09:49:18 +0000 (02:49 -0700)]
Fixed simpleserver to match correct APIs to set and get Representation from the entity handler. Added code in roomclient to get resource type and interface. Cleared some dead code.
Change-Id: I189ccb86bd38d742866c7201c7b00efac12cc827
Sachin Agrawal [Fri, 22 Aug 2014 09:32:59 +0000 (02:32 -0700)]
Folks using sample apps get confused with error-prone code in samples. Fixing few issues here:
1. EH should copy the payload and not modify the payload pointer location.
2. EH should check the length of response payload before copying data into it.
3. Fixed getResult.
4. Updated payload to reflect our modified JSON format.
Change-Id: I9847742c01c8db203b4fa74b5397136414f86994
Patrick Lankswert [Fri, 22 Aug 2014 05:40:09 +0000 (22:40 -0700)]
Merge "Fix for missing data in the observe notification. JSON response was not built correctly."
Patrick Lankswert [Fri, 22 Aug 2014 05:33:25 +0000 (22:33 -0700)]
Merge "1. Fixed double free in OCDoResource that caused segfault 2. Modified csdk/stack/test/stacktests.cpp because API change caused ocstack unit test build to fail."
George Bowden [Fri, 22 Aug 2014 05:29:44 +0000 (22:29 -0700)]
Merge "TA1622 - Updated the copyright company from Intel Corporation to Intel Mobile Communications GmbH"
Sudarshan Prasad [Fri, 22 Aug 2014 05:13:26 +0000 (22:13 -0700)]
Fix for missing data in the observe notification. JSON response was not built correctly.
Change-Id: Idc7043228119854da497591cc468f95a6af38516
Sashi Penta [Fri, 22 Aug 2014 03:08:17 +0000 (20:08 -0700)]
Fix build issue.
Change-Id: I4e587768e921d9654d0473fa702bf35a2685211d
William Dieter [Fri, 22 Aug 2014 00:45:37 +0000 (17:45 -0700)]
Merge "Exposed APIs for getting resource types and resource interfaces in OCResource header. Updated samples accordingly."
Doug Hudson [Fri, 22 Aug 2014 00:44:13 +0000 (20:44 -0400)]
1. Fixed double free in OCDoResource that caused segfault
2. Modified csdk/stack/test/stacktests.cpp because API change caused
ocstack unit test build to fail.
Change-Id: Ie06a5ad603e40ea67fbaadead66b4334d290c8ac
William Dieter [Fri, 22 Aug 2014 00:42:41 +0000 (17:42 -0700)]
Merge "Makefile again builds OCProperties."
William Dieter [Fri, 22 Aug 2014 00:37:20 +0000 (17:37 -0700)]
Merge "examples are created in just release/debug folder."
Sudarshan Prasad [Fri, 22 Aug 2014 00:14:01 +0000 (17:14 -0700)]
Exposed APIs for getting resource types and resource interfaces in OCResource header. Updated samples accordingly.
Change-Id: Iac6ac0dc064c62c419c1dee186f05d5aeb064623
Sashi Penta [Thu, 21 Aug 2014 22:58:17 +0000 (15:58 -0700)]
examples are created in just release/debug folder.
Change-Id: I9da8aab784d98fca7273dc2e9f03ba8dd8bda35c
William Dieter [Thu, 21 Aug 2014 21:28:19 +0000 (14:28 -0700)]
Merge "Incrementing the size of request/response packets for non-Arduino platforms. Also moved all the configurable items in a ocstackconfig.h include file"
Jesse Williamson [Thu, 21 Aug 2014 17:53:25 +0000 (10:53 -0700)]
Makefile again builds OCProperties.
AttributeMap -> OCRepresentation
Change-Id: I49effbd0a76845391a26aedcedacf783de8d0aa6
Sashi Penta [Thu, 21 Aug 2014 18:25:24 +0000 (11:25 -0700)]
Fix buildng C++ examples. Some examples are removed from the build script until those are fixed.
Change-Id: I706a770e9760250edc092ff2d3c78898f73b444f
Joseph Morrow [Thu, 21 Aug 2014 15:54:42 +0000 (11:54 -0400)]
Incrementing the size of request/response packets for non-Arduino platforms. Also moved all the configurable items in a ocstackconfig.h include file
Change-Id: I46e4e4cc58d7b48890878faaa52a786cb8a459ab
Gene Chang [Thu, 21 Aug 2014 13:50:03 +0000 (09:50 -0400)]
TA1622 - Updated the copyright company from Intel Corporation to Intel Mobile Communications GmbH
Change-Id: Ia34c1254127b2c78f3a57aa89ae12b5805cb8be0
Sashi Penta [Thu, 21 Aug 2014 00:01:05 +0000 (17:01 -0700)]
CPP Default entity handler functionality and misc fixes.
Patch 1:
Fixed simpleclient to work with Observe, along with JSON representation changes.
Patch 2:
Fixed some stuff in simpleclientserver, and other things.
Patch 3:
C++ change to discover multiple resources on a server
Patch 4:
C++ Default handler functionality.
Fixes in C Stack for Default entity hanlder for C++ stack to work.
Few other misc. fixes.
Patch 5: Changed entityHandler name to EntityHandler.
Added Try/Catch around read_json
Fix for simpleclientserver
Change-Id: I3e2006b73de22567ccb7d770d5843e5a5eebce47
Joseph Morrow [Mon, 18 Aug 2014 21:04:21 +0000 (17:04 -0400)]
Initial Push of Arduino Sample Apps
Right now, tokens are messed up. I cannot get Observe operation to
function properly on Linux or Arduino.
Right now, here is the Arduino server only.
Patch Set 2: Removed "local.properties." This file should NEVER be
committed.
Patch Set 4: Made changes to READMEs as proposed by Bill Dieter.
Patch Set 5-7: Rebases
Path Set 8: Updated stack files to build for Arduino as well.
Arduino compiler is a little bit more per-snickety than the linux compiler.
Change-Id: I21b9396d1d22b9189db65ef31d4528720b01c5b9
Sashi Penta [Wed, 20 Aug 2014 01:49:02 +0000 (18:49 -0700)]
GET for CPP/Client
Change-Id: I1a6b9a087bec196387b4a8ab11f153451af54961
William Dieter [Wed, 20 Aug 2014 01:44:23 +0000 (18:44 -0700)]
Merge "A commit with Confirmable support: Patch set 1 which supports: 1) Sending a delayed response when the request is received as multicast, tested only on linux. 2) Sending confirmable requests. 3) Sending confirmable observer notifications. 4) Sending nonconfirmable observer notification with support of detecting client leaving. 5) Added support for client to send RESET instead of regular GET. 6) Error handling in cases of failed retransmissions. 7) Code reorganizations and refactoring."
clairiky [Wed, 20 Aug 2014 01:39:46 +0000 (18:39 -0700)]
A commit with Confirmable support:
Patch set 1 which supports:
1) Sending a delayed response when the request is received as multicast, tested only on linux.
2) Sending confirmable requests.
3) Sending confirmable observer notifications.
4) Sending nonconfirmable observer notification with support of detecting client leaving.
5) Added support for client to send RESET instead of regular GET.
6) Error handling in cases of failed retransmissions.
7) Code reorganizations and refactoring.
Patch set 2:
1) Response to code reviews
Patch set 3:
1) Rebased on master
Patch set 4:
Removed tabs.
Change-Id: I502168bf71c7253f3d4b64b9c2edfe40b1cd8d7a
William Dieter [Wed, 20 Aug 2014 01:24:56 +0000 (18:24 -0700)]
Merge "CPP Collection"
William Dieter [Wed, 20 Aug 2014 01:23:13 +0000 (18:23 -0700)]
Merge "Added client/server multiple-resource program; fixed reflection exception namespaces."
William Dieter [Wed, 20 Aug 2014 01:11:10 +0000 (18:11 -0700)]
Merge "Modified stack unit test makefile (root/csdk/stack/test/makefile) that was broken when root/csdk/makefile mod that created debug and release subdirectories was pushed."
Sashi Penta [Tue, 19 Aug 2014 06:02:54 +0000 (23:02 -0700)]
CPP Collection
Patch 1:
Server side CPP collection interfaces implementation.
Includes new class OCRepresentation for collection resources and simple resource.
Includes Sudarshan's changes related to Query Params.
Patch 2:
Client side CPP Put on collection
Patch 3:
Addresses Jesse's comments
Change-Id: Ia1b8fa32a7d80d13519f456aaa6817466ffdfa60
Jesse Williamson [Mon, 18 Aug 2014 17:29:23 +0000 (10:29 -0700)]
Added client/server multiple-resource program; fixed reflection exception namespaces.
Change-Id: Ibdcf3b722c31f5f5040e8b594431b943274b743d
William Dieter [Tue, 19 Aug 2014 16:28:48 +0000 (09:28 -0700)]
Merge "Check-in for container tests for C APIs. They were supposed to be in the previous commit, somehow they got missed during rebase."
clairiky [Tue, 19 Aug 2014 16:07:30 +0000 (09:07 -0700)]
Check-in for container tests for C APIs. They were supposed to be in the previous commit, somehow they got missed during rebase.
Removed tabs
Change-Id: Id5c6f6d64d42cf3ac25ad866ef926c209f7812ec
Sashi Penta [Tue, 19 Aug 2014 03:59:39 +0000 (20:59 -0700)]
Fix build error. Now the entityHandler has its own return type
Change-Id: I1151d88db2c1cb3fada268504948d34723b25e09
clairiky [Tue, 19 Aug 2014 02:19:48 +0000 (19:19 -0700)]
Default entity handler outline for collection resources
Added GET for LL and def for default entity handler.
This commit has Sachin's and Chanchala'a changes.
This is GET (LL and B) and PUT (B) working from C apps. New JSON format is
also implemented.
Jesse's review incorporated and tabs removed.
Change-Id: I9d27612d545fdeda1798a5b8c01953a260cfdbef
William Dieter [Tue, 19 Aug 2014 01:04:14 +0000 (18:04 -0700)]
Merge "integrated coapuriparser fixed the crash occuring when freeing memory in OCUtilities.cpp added a temporary patch in OCUtilities.cpp after discussion with Sudarshan made changes to makefile and OCUtilities.h as per Bill and Joey's comments."
Aniket Pingley [Fri, 15 Aug 2014 21:29:33 +0000 (14:29 -0700)]
integrated coapuriparser
fixed the crash occuring when freeing memory in OCUtilities.cpp
added a temporary patch in OCUtilities.cpp after discussion with Sudarshan
made changes to makefile and OCUtilities.h as per Bill and Joey's comments.
Change-Id: I53f838bf6cd2e78d5a9c9eadfeb982d29bde54cb
William Dieter [Sun, 17 Aug 2014 22:59:26 +0000 (15:59 -0700)]
Merge "we don't need linux/if_link.h. Removing this allows building in other platforms"
sashi [Sat, 16 Aug 2014 17:52:27 +0000 (10:52 -0700)]
we don't need linux/if_link.h. Removing this allows building in other platforms
Change-Id: Idef28aeb8f1aa8341439bdac8bfeb17326dd3344
Joseph Morrow [Fri, 15 Aug 2014 20:49:36 +0000 (16:49 -0400)]
Porting TBStack Functionality to Arduino. The following changes were made
for this:
Added PCF() wrappers around const char* strings to store pre-defined debug
statements in flash, rather than RAM. This only 'affects' Arduino. It has
no affect on linux.
Removed erroneous/un-wanted #include headers from the public TB Stack API
Removed #include ocrandom.h as it was/is unneeded by ISVs.
Updated makefiles to be more friendly between Linux Vs.
Arduino builds (i.e. made both build without a hitch).
Cleaned up warnings that AVR-GCC marked as warnings that regular 'ol GCC
did not. Most notably line 328 or 329 "OCStopCoAP()" is being called
with a parameter. OCStopCoAP does not take ANY parameters.
Fixed bug with Arduino devices not retrieving correct IP address structs
from Linux devices (i.e. OCDevAddr needed to be #pragma packed).
Change-Id: Ided8d61ba647889d7a52fa7a4477ca67944b0fa0
Doug Hudson [Fri, 15 Aug 2014 18:59:35 +0000 (14:59 -0400)]
Modified stack unit test makefile (root/csdk/stack/test/makefile) that was
broken when root/csdk/makefile mod that created debug and release
subdirectories was pushed.
Note that this unit test MAY be used to verify the build on the build server.
Change-Id: If6075d0d06f233ff4902e480a66dda2cc7248366
Sachin Agrawal [Fri, 15 Aug 2014 15:33:48 +0000 (08:33 -0700)]
Fixing the segfault reported by Doug. It is caused because we are attempting to double free pointer. Carrying this from previous repo.
Change-Id: Iac6ccdbc87a2761103487d0aadf25133be50c9c2
Joseph Morrow [Fri, 15 Aug 2014 14:26:45 +0000 (10:26 -0400)]
Merge Teamforge ccf-resource repo onto OIC oic-resource repo.
Merge remote-tracking branch 'oic/master' into oic-merge
Conflicts:
csdk/stack/test/linux/Makefile
Keane, Erich [Thu, 14 Aug 2014 21:42:13 +0000 (14:42 -0700)]
Merge "* initial creation of API documentation Change-Id: I396fa690ce65a4ff88bcfe8c574759a425ec9a53"
shamit [Thu, 14 Aug 2014 20:15:36 +0000 (15:15 -0500)]
* initial creation of API documentation
Change-Id: I396fa690ce65a4ff88bcfe8c574759a425ec9a53
Adam Westhusing [Thu, 14 Aug 2014 20:20:03 +0000 (16:20 -0400)]
Updating all of the makefiles to support separate directories for debug and release artifacts.
Change-Id: I61df1142255bc7abb4d0547c5edcc5e4567a9517
Erich Keane [Thu, 14 Aug 2014 20:41:04 +0000 (13:41 -0700)]
Merge "First implementation for Client and Server in same process. Additionally changed OCResource's IClientWrapper reference to a weak_ptr so that it doesn't cause a deadlock on destruction."
Sachin Agrawal [Thu, 14 Aug 2014 02:46:02 +0000 (19:46 -0700)]
Increasing the size of max server payload(MAX_REQUEST_LENGTH) allowed
Patch 2 : Missed fixing the 'real' culprit.
Change-Id: I4eff9363fa589d3b15b0f9f85c830d59c9f0f979
Sachin Agrawal [Tue, 12 Aug 2014 16:04:21 +0000 (09:04 -0700)]
1. Get/Put callbacks now returning OC_STACK_DELETE_TRAN. This allows us to do memory profiling on stack using sample app. 2. Moved error translation to a common file which can be used by client/server app. 3. some other error cleaning identified in previous reviews
Change-Id: I6b54f127cf3297b9c0b1f6d6f453c2cc68211c01
Erich Keane [Tue, 12 Aug 2014 20:42:47 +0000 (13:42 -0700)]
First implementation for Client and Server in same process. Additionally changed OCResource's IClientWrapper reference to a weak_ptr
so that it doesn't cause a deadlock on destruction.
SimpleClientServer Example that shows off a client and a server operating on the same process. The client only does a discovery and a get
Change-Id: I5221a658e58c9c4f7d0c58cbbc657b6880d860bf
Doug Hudson [Wed, 13 Aug 2014 18:34:12 +0000 (14:34 -0400)]
1. Modified OCCreateResource to allow NULL to be passed as entity handler parameter. If NULL
is passed, the stack's default entity handler is assigned to the resource
2. Modified OCCreateResource so that resource and other dynamic elements it references are
freed upon creation error.
3. Modified OCStop so that all resources and other dynamically created elements they
reference are freed.
4. Modified unit test makefile to build unit test with octbstack.a.
5. Moved unit test makefile from root/csdk/stack to root/csdk/stack/test
6. Fixed all broken API calls in root/csdk/stack/test/stacktests.cpp
Keane, Erich [Wed, 13 Aug 2014 21:29:53 +0000 (14:29 -0700)]
Merge "Updated functions description to match with params listed in function signature"
Thuyen Tran [Tue, 12 Aug 2014 20:33:00 +0000 (13:33 -0700)]
Updated functions description to match with params listed in function signature
Sashi Penta [Tue, 12 Aug 2014 18:16:48 +0000 (11:16 -0700)]
Patch1:
1. Renamed all container stuff to collection stuff both in C/C++.
2. Simplified function names in C stack.
3. Implemented OCUnbindResource in C stack.
4. Implemented unbindResource(s) in C++ stack.
Patch2: Incorporated Doug and Erich's review comments.
Change-Id: I32d8f7248b65e2fee9a05ca52d22f7d247748984
Erich Keane [Tue, 12 Aug 2014 20:25:03 +0000 (13:25 -0700)]
Makefile to build with c++0x, so we can support compilers old enough to attend 1st grade
Change-Id: Iff0367bf67df7e7fd701e42222fbc068797f3916
Erich Keane [Tue, 12 Aug 2014 17:53:04 +0000 (10:53 -0700)]
US1313, abillity to create an OCResource object without discovering it
Change-Id: Ie283435901a6438c4695496c79cca15e248273a2
Thuyen Tran [Tue, 12 Aug 2014 02:04:13 +0000 (19:04 -0700)]
Add ObserveAll case in SimpleClient C++
Change-Id: I8769f8bec28ddfa607819926384f2aee9143618f
Sudarshan Prasad [Mon, 11 Aug 2014 19:58:18 +0000 (12:58 -0700)]
Added Get and Put for collection. TODO: implementation
Sashi Penta [Fri, 8 Aug 2014 17:33:32 +0000 (10:33 -0700)]
bindResource and bindResources implementation
Change-Id: I26747c1360ebc4f385474ee09e403af10b245253
Erich Keane [Mon, 11 Aug 2014 16:09:08 +0000 (09:09 -0700)]
1) Minor change in ocsocket and libcoap to identify if a packet was received on unicast or multicast address/socket
Patch 2 : Fixed identified review comments.
Modified ocserver to listen on '5683' so that occlient
can send unicast discovery requests to it.
Patch 3 : 'Really' taking care of tabs this time.
Change-Id: I50c0d47133a469d20ba17e26f2df540e97d099bc
Joseph Morrow [Mon, 11 Aug 2014 15:53:42 +0000 (11:53 -0400)]
Accidentally pushed and set makefile for TB Stack to build for ARDUINO. I reverted this to LINUX. To build for ARDUINO issue this in terminal:
make PLATFORM=arduino
Sudarshan Prasad [Mon, 11 Aug 2014 13:46:41 +0000 (06:46 -0700)]
Fix for building OIC code. Makefile was pointing to ccf-utilities which was incorrect. Fix is to point to oic-utilities.
Change-Id: Ic2944a890d9856bb32f940946d6fd5e3c42d3300
Keane, Erich [Fri, 8 Aug 2014 23:49:26 +0000 (16:49 -0700)]
Merge "Changing TBStack makefiles to allow for DEBUG & RELEASE modes through & through."
Keane, Erich [Fri, 8 Aug 2014 23:48:27 +0000 (16:48 -0700)]
Merge "- US1321 - Now, C++ API users will be able to register multiple types and interfaces to a resource. The API names may change after review. - Removed unwanted trailing whitespaces at the end of lines. - Updated according to review comments."
Joseph Morrow [Fri, 8 Aug 2014 22:15:46 +0000 (18:15 -0400)]
Changing TBStack makefiles to allow for DEBUG & RELEASE modes through & through.
Renaming all instances of "Makefile" to "makefile". Justification:
From what I can read "makefile" is ran over "Makefile" when "make" is ran.
Also, more of our makefiles have a lower-case "m" as of now.
Also, this move/rename doesn't affect anyone..I used the git-mv command because I know using "mv" would be detrimental to anyone using Windows.
clairiky [Fri, 8 Aug 2014 21:23:49 +0000 (14:23 -0700)]
- US1321 - Now, C++ API users will be able to register multiple types and interfaces
to a resource. The API names may change after review.
- Removed unwanted trailing whitespaces at the end of lines.
- Updated according to review comments.
Change-Id: I13f7fcd07386d4a13d42f00254f870cfbd8ca4b4
Joseph Morrow [Fri, 8 Aug 2014 20:43:33 +0000 (16:43 -0400)]
Updated C++ stack makefiles to build in DEBUG or RELEASE modes.
Westhusing, Adam [Fri, 8 Aug 2014 17:32:16 +0000 (10:32 -0700)]
Merge "Updated TB Stack Unittest source code and makefile to be up to date with current state of TB Stack."
Joseph Morrow [Fri, 8 Aug 2014 17:29:36 +0000 (13:29 -0400)]
Updated TB Stack Unittest source code and makefile to be up to date with current state of TB Stack.
Adam Westhusing [Fri, 8 Aug 2014 15:24:19 +0000 (11:24 -0400)]
Fixing the unit test Makefile so it can find cJSON in ccf-utilities
Adam Westhusing [Fri, 8 Aug 2014 15:16:17 +0000 (11:16 -0400)]
Fixing the unit tests so that they build in Jenkins.
Sudarshan Prasad [Fri, 8 Aug 2014 09:34:56 +0000 (02:34 -0700)]
Added the possible APIs for binding a resource to another resource. This is for resource collection feature. TODO implementation for the functions.
Erich Keane [Thu, 7 Aug 2014 22:16:12 +0000 (15:16 -0700)]
Fixed a TODO that got reported by Chris
Change-Id: I185ea9161f40a920d9183a33482c7d410d1d0caa
Keane, Erich [Thu, 7 Aug 2014 22:09:29 +0000 (15:09 -0700)]
Merge "Removing resourceAttributeRepresentation and allowedMethods parameters through the C Stack. These parameters are not required, and confusing C++ stack developers."
Erich Keane [Thu, 7 Aug 2014 21:31:51 +0000 (14:31 -0700)]
Merge "US1310: C++ Client will now do callbacks when an error callback is received and it is required to by the spec"
Erich Keane [Wed, 6 Aug 2014 03:15:59 +0000 (20:15 -0700)]
US1310: C++ Client will now do callbacks when an error callback is received and it is required to by the spec
Patch 2 & 3: responded to code-review feedback
Change-Id: I726cca729164ae5eb13ac154a0bec9819e2f441f
William R. Dieter [Thu, 7 Aug 2014 01:00:36 +0000 (21:00 -0400)]
Added Release Notes from Sudarshan.
Change-Id: Ibff971b9b9ba6b42f08b427503cc44d5b40b4f59
Sashi Penta [Wed, 6 Aug 2014 21:41:19 +0000 (14:41 -0700)]
Removing resourceAttributeRepresentation and allowedMethods parameters through the C Stack. These parameters are not required, and confusing C++ stack developers.
Erich Keane [Tue, 5 Aug 2014 21:58:16 +0000 (14:58 -0700)]
Fixed the makefile to properly use CJSON
Erich Keane [Tue, 5 Aug 2014 21:51:56 +0000 (14:51 -0700)]
Merge branch 'master' of ssh://git-amr-1.devtools.intel.com:29418/ccf-resource
Sashi Penta [Tue, 5 Aug 2014 21:21:47 +0000 (14:21 -0700)]
All changes in the C++ stack to get the Get/put/StartObserve functionality working. Combination/squash of Sashi & Erich's effort.
Patch3: OCStackResult return added to registerResource
Patch4: Simplified simpleserver.cpp
Patch5: Cleaned InProcServerWrapper.cpp
Patch6: Responded to a number of issues that came up as a part of the code review (thanks Jesse!)
Patch7: Review comments from Sudarshan/Sam
Patch8: Rebased on PS21 from Joey, enabled cancel, pushing so we can debug it.
Patch9: Got cancel working correctly, removed the Cancel callback, since we aren't provided with it from the lower layer
Patch10: Cleaned some tabs space. Changed the resource to core.light. Removed examples from examples. and other cleanups.
Patch11: Header file changes from Sudarshan. Fixed tabs.
Patch12: Rebase
Patch13: improved examples. Added myLightResource.setRepresentation()
Patch14: Simple one line change (adding a new line)
Change-Id: Ic6fb03372bf9ff2bca94ff9605fd5f30ce5fac1f