- 09 Oct, 2019 1 commit
-
-
George Nash authored
This adds OCEndpointParseException that will be thrown if stringToEndpoint fails to parse the passed in string. Initially I would have liked to use the java.text.ParseException but it expects the errorOffset value which is the position where the parse error occured in the source string. We don't have a mechanism for discovering the errorOffset so a regular exception with a error message has been used instead. Additionally updated the NullPointerException code for setDi to use the C/C++ abstraction macros for Java method calls. Change-Id: I76442508c0b5b6c84d8c5ba303f0d982d550e5b6 Signed-off-by:
George Nash <george.nash@intel.com>
-
- 08 Oct, 2019 3 commits
-
-
George Nash authored
This commit removes the default constructor generation for the OCRole class. At this time the user must use OCObt.addRoleId to create and add roles for the onboarding tool. This also prevents SWIG generating setter functions for role and authority. These should also be assigned using the addRoleId method. Change-Id: I396f5f45724d7f714c035866eece18f079dcd54c Signed-off-by:
George Nash <george.nash@intel.com>
-
Larry Sachs authored
Change-Id: I1e2a868803f68ece5b78655c10c3b5c4784916fa Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
George Nash authored
If null is passed in for the endpoint or for di when calling the OCEndpointUtil.setDi method it will now throw a NullPointerException that will avoid a segfault from the C code. Change-Id: I3f29486c21e08f3718752efbd108ce0401defa24 Signed-off-by:
George Nash <george.nash@intel.com>
-
- 07 Oct, 2019 3 commits
-
-
George Nash authored
If initPut or initPost methods fail this will release the jni_sync_lock before returning to prevent the code from deadlocking. Change-Id: Ie85c9eee3a4e4649f4af8b960264a8d25955adfe Signed-off-by:
George Nash <george.nash@intel.com>
-
Larry Sachs authored
Reflects a recent addition to the apis. Change-Id: Idd99c36ecabbef80d74ebdc5c75c9b21e9b9e55d Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
George Nash authored
This exposes most of the data types in the new oc_acl_common.h header to Java. Updated cloud certification app and onboarding tools to match what is found in the C version of the tools. Change-Id: I413abb229749d93a1bfe97673ab51af7b61fb997 Signed-off-by:
George Nash <george.nash@intel.com>
-
- 04 Oct, 2019 3 commits
-
-
Larry Sachs authored
Change-Id: I54bdf9f551e065804dd1552e7f5f94b4e080ddf1 Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
George Nash authored
Change-Id: If3f43cace602572a89256904c7dd7296414557fc Signed-off-by:
George Nash <george.nash@intel.com>
-
George Nash authored
Add the code to map oc_resource_set_properties_cbs function to the Java resourceSetPropertiesHandlers method Also add the two callbacks handler classes for OCGetPropertiesHandler and OCSetPropertiesHandler Some cleanup code for - OCCollections - OCCloudContex and others The structs oc_link_params_t and oc_rt_t were ignored in the swig output. No public functions that take or return these structs could be found. Change-Id: Iebb1ca8387ff119623af1765a5c0717a34ecd2bd Signed-off-by:
George Nash <george.nash@intel.com>
-
- 02 Oct, 2019 2 commits
-
-
Larry Sachs authored
Change-Id: I8f01dfabdac8ba6dcd005c49bd4e76a146ff541a Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
Larry Sachs authored
Change-Id: I9add62d0add799b7bae04b8591cbff547b55f34c Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
- 26 Sep, 2019 1 commit
-
-
Larry Sachs authored
Change-Id: I32d8e9cae52f10f1aa3532629387feeea3d8970e Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
- 18 Sep, 2019 1 commit
-
-
Larry Sachs authored
Simple Client/Server apps showing new Media Control Resource. Change-Id: Ifa46f394c7290ed87fa96abcccf7ddfdd034d441 Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
- 13 Sep, 2019 1 commit
-
-
Larry Sachs authored
Change-Id: I5823de4c8b3f31d7f9e28231d968f9d0ecdddd55 Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
- 05 Sep, 2019 1 commit
-
-
Larry Sachs authored
Change-Id: Idbc7aaa3dfb870dd1914d876fc1a41f59ff19704 Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
- 03 Sep, 2019 1 commit
-
-
George Nash authored
Change-Id: I2b184a8bbb8007ff64cdc8d5203ec6d75216e33f Signed-off-by:
George Nash <george.nash@intel.com>
-
- 29 Aug, 2019 1 commit
-
-
George Nash authored
This extends the endpoint struct for swig so the generated code will call oc_new_endpoint and oc_free_endpoint when new and finalize are called. Endpoint(s) are set to NULL after calling oc_free_endpoint or oc_free_server_endpoints is called from Java. This will prevent double freeing memory which would result in a segfault. code that returns or accept multiple endpoints in a list now indicate that fact because the variable name is plural 'endpoints' Change-Id: Id11a1c98e724bf44b7ab82e92a529f3859f6e936 Signed-off-by:
George Nash <george.nash@intel.com>
-
- 23 Aug, 2019 1 commit
-
-
George Nash authored
The Java stringToEndpoint method now returns an OCEndpoint In addition a collection of unit tests were added to verify the code. Change-Id: I6040d9b48ca214d83daf49a59f6b2ba8ff2903dd Signed-off-by:
George Nash <george.nash@intel.com>
-
- 21 Aug, 2019 1 commit
-
-
George Nash authored
The Java generated code before this only added OC_TCP when CLOUD=1. This makes it so it can build even when CLOUD=0. Change-Id: I175afae585d05ee8ff8d52aca4f2e233e7f40224 Signed-off-by:
George Nash <george.nash@intel.com>
-
- 19 Aug, 2019 2 commits
-
-
George Nash authored
There was an issue in the generated code. It was supposed to automatically find the length of the pin without the user needing to pass it as a sepparate variable. There was a small typo in the swig typemap which caused the code to ask for the pin length. Change-Id: If3f3df8dd158fdb3b0cee3270bb98cc98f3cec79 Signed-off-by:
George Nash <george.nash@intel.com>
-
George Nash authored
Change-Id: I03a07234d14cac9e33956a31b159bf540bc7da46 Signed-off-by:
George Nash <george.nash@intel.com>
-
- 15 Aug, 2019 1 commit
-
-
George Nash authored
All of the writing and testing of intropsection methods was done before the swig make file was writen. This fixes the issue that the IDD value was not properly propagated through to the swig make file. Change-Id: I6e364e27b32d647d1e9c54deb479f60c6a28e754 Signed-off-by:
George Nash <george.nash@intel.com>
-
- 14 Aug, 2019 2 commits
-
-
George Nash authored
The functions were renamed in the Java code so the name would be more in sync with the C code it is binding with. Change-Id: I6a3f3941710eee46f4edf08564d1154356f62f4f Signed-off-by:
George Nash <george.nash@intel.com>
-
George Nash authored
The enum was renamed but the name change was missed in the interface file. Change-Id: I1ae294be4813f8cc38130ab63c4978c51c8f7b15 Signed-off-by:
George Nash <george.nash@intel.com>
-
- 13 Aug, 2019 1 commit
-
-
George Nash authored
the issue was fixed but the test was not re-enabled Change-Id: Ifc132f24c3139ab78f3faa1a92d93b7fa9b74e9e Signed-off-by:
George Nash <george.nash@intel.com>
-
- 07 Aug, 2019 3 commits
-
-
Larry Sachs authored
Adds a base OcException class from which other OcExceptions can be derived. Adds OcCborException for OcRepresention errors. Updates the Onboarding Tools examples to use OcRepresentation with try/catch for OcCborExceptions. Change-Id: I35943e73e8d68ab0be715922da450431ea2b3673 Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
George Nash authored
This expands the documentation to generate documentation for the OCRep class when swig is run. This also cleans up the some of documentation for the OCMain class as well. Mostly whitespace cleanup. In The process of developing the documentation the clearCborErrno was added since the documentation process exposed the fact that there was no way to clear the CborErrno from Java. The Java function getRepError was removed it was returning the same information as getCborErrno. Change-Id: Iee237168c122f3d851b19c1cf967de304ab26147 Signed-off-by:
George Nash <george.nash@intel.com>
-
Larry Sachs authored
Change-Id: If99e299b1c4e9ba9332f163873803995e3a70151 Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
- 06 Aug, 2019 2 commits
-
-
Larry Sachs authored
When the old Android apps were removed, these copy commands should have been removed also. Change-Id: I1d3e9cb910a44c130b49c6c21b1e835ba781a7cd Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
Larry Sachs authored
The build script build-jni-so.sh is no longer used, the Makefiles do the work it used to do. File should be removed to avoid confusion for users. Change-Id: I10b574461bc825ca92455afd87fd6ac6ddff1ff8 Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
- 02 Aug, 2019 1 commit
-
-
Larry Sachs authored
The Android apps in swig/apps/oc will be the samples. Change-Id: I02f4d4c8990862cb5c0bb48a58f6cc8d2b8825e3 Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
- 01 Aug, 2019 3 commits
-
-
Larry Sachs authored
Change-Id: Icb516968565401af5fb76eb79ac9d8710cc5ecb1 Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
Larry Sachs authored
See https://gerrit.iotivity.org/gerrit/c/iotivity-lite/+/29662 Change-Id: Ibdf6ad7fa1db2306a5b970de4080e6f035cb3afc Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
Larry Sachs authored
Change-Id: Ie19ee8356fc21d5997cf0eceac88ba86c5de410a Signed-off-by:
Larry Sachs <larry.j.sachs@intel.com>
-
- 31 Jul, 2019 1 commit
-
-
George Nash authored
Change-Id: I529e32d4f104e8d6e088d29f8e5da4ce986aeaa5 Signed-off-by:
George Nash <george.nash@intel.com>
-
- 30 Jul, 2019 3 commits
-
-
George Nash authored
This change allows us to have a consistant Java JAR API regardless of the SECURE build options. Change-Id: I70061fa2bf9d06dc59f16c764d652919095f6b91 Signed-off-by:
George Nash <george.nash@intel.com>
-
George Nash authored
Add code to release the global ref after a callback will no longer be called. Change-Id: I1da2c96f0a672d7897473ef7391c99732c6b1e66 Signed-off-by:
George Nash <george.nash@intel.com>
-
George Nash authored
When built with SECURE=0 the following functions implementation is ifdef'ed out and will cause an UnsatisfiedLinkError when the functions are called from a Java progeam. - oc_reset - oc_core_regen_unique_ids - oc_auto_assert_roles - oc_assert_all_roles We call a dummy function that will just call the C function if SECURED=0 it will do nothing and return. When building SECURE=0 all of the methods from oc_obt.h are excluded from the build. To make this possible some more selective logic was added to the swig Makefile to not process oc_obt.i and not copy files from the oc folder that reference generated code from oc_obt.i. Change-Id: I82eddbc894df67a51127929eecf650c98b115b4f Signed-off-by:
George Nash <george.nash@intel.com>
-
- 29 Jul, 2019 1 commit
-
-
George Nash authored
SWIG currently does not have generic way to generate documentation in the output so this use hacks to generate the required documentation. This copies over the documentation from oc_api.h to the Java output. Change-Id: Id80acf08a0035517b57a83ca322645ea98914046 Signed-off-by:
George Nash <george.nash@intel.com>
-