1. 28 Apr, 2020 2 commits
  2. 02 Apr, 2020 1 commit
  3. 27 Feb, 2020 1 commit
    • George Nash's avatar
      Fix static analysis warnings from Codan static analysis tool · 33144537
      George Nash authored
      The codan static analysis tool is built into eclipse CDT which
      I used time to time.
      
      Most of these warnings were suggestions to surround bitwise
      operations with parenthesis.  Some of the suggetions were
      about return values for pthread code in the network_event_thread
      function.
      
      In addition a white space error was fixed in the documentation
      in oc_api.h
      
      The most common warning is about not break statment at the end
      of case statments. All but one of these was done purposly.
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      33144537
  4. 25 Jan, 2020 1 commit
    • George Nash's avatar
      Add OC_STORAGE define that is set in oc_config.h · b0e9dac7
      George Nash authored
      Persistant storage is currently only enabled if OC_SECURITY
      is defined.  This has lead implementation problems when
      implementing features like introspection, cloud, or
      software-update which also require persistant storage.
      
      This commit replaces the `#ifdef OC_SECURITY` with
      `#ifdef OC_STORAGE` in oc_storage.c.
      
      Inside config.h OC_STORAGE is defined if OC_SECURITY, OC_IDD_API
      OC_SOFTWARE_UPDATE, or OC_SECURITY is defined.
      
      Also updated samples that call oc_storage_config so they call it
      if OC_STORAGE is defined instead of OC_SECURITY.
      
      Removed the dummy storage implmentation from the
      oc_cloud_storage.c since OC_STORAGE is now defined by default
      when OC_CLOUD is defined.
      
      Some preprocessor check were added to check it one of the
      features that require OC_STORAGE is set but OC_STORAGE is not
      set. This will cause a build error and inform developers to
      check oc_config.h to make sure OC_STORAGE is set there.
      
      Change-Id: I9a9242349e939393f190cab373fe7d0252ae656c
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      b0e9dac7
  5. 21 Nov, 2019 1 commit
  6. 13 Nov, 2019 1 commit
  7. 07 Nov, 2019 1 commit
    • George Nash's avatar
      Updated Android readme for merge · 451775d5
      George Nash authored
      Removed the instruction about checking out swig branch, the
      code will be on master.
      
      Removed the onboarding instructions instead it points people to
      the root level README.
      
      Changed the header underline style I had the header style
      reverse of what it should be for markdown.
      
      Change-Id: I761185b502db6704201b1f1de0fbdd1988024e23
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      451775d5
  8. 01 Nov, 2019 1 commit
  9. 31 Oct, 2019 1 commit
    • George Nash's avatar
      Update the SWIG README.md files · abd622fc
      George Nash authored
      - minor update to the description of what SWIG is
      - removed C++ as a requirement since we now only require C
      - Indicated SWIG version 3.0 was used for developement not the
        newer version 4.0
      - Removed Oracle Java from the list of version of Java code was
        tested against. Indicated this was due to changes in the way
        Oracle licenses Java.
      - Added link to download AdoptOpenJDK since this is the version
        Java currently found on my windows computer.
      - Minor rewording of install instructions
      - Removed request for feedback in the section talking about
        Visual Studio.
      - Updated the onboarding and provisioning section. The
        Onboarding tool has change a lot since the original
        section was writen. I removed most of the example output.
        It now just instructs the developers on the expected input not
        output.
      - Added a small block talking about the Android version of the
        onboarding tool.
      - removed the instructions to copy the iotivity-lite-jni library
        to the iotiviy-lite-java project. This is now done
        automatically by build scripts on the 3 supported operating
        systems
      - Change the directory layout to use ascii characters instead
        of UTF-8 characters they were causing layout issues on
        windows which was expecting Cp1252.
      - Removed the indication that the bindings are still in early
        stage and subject to change. Although this is still a true
        statment the change has slowed down and we want to appear
        as stable as possible.
      - Same changes made to the onboarding and provisioning section
        of the Android README.md as were made to the swig README.md
      Change-Id: I6b192051c766ba5b52667c8eee6fe16e7c7fe42a
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      abd622fc
  10. 28 Oct, 2019 1 commit
  11. 08 Oct, 2019 1 commit
  12. 21 Aug, 2019 1 commit
  13. 15 Aug, 2019 1 commit
  14. 14 Aug, 2019 1 commit
  15. 30 Jul, 2019 1 commit
    • George Nash's avatar
      Fix UnsatisfiedLinkError when SECURE=0 · f892c882
      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's avatarGeorge Nash <george.nash@intel.com>
      f892c882
  16. 18 Jul, 2019 1 commit
    • Kishen Maloor's avatar
      Update Android port · b2fe726c
      Kishen Maloor authored
      * Fix/update TCP and IP adapters to achieve functional equivalence
        to the Linux adapters.
      * Add missing PKI and Cloud related code components to the Makefile.
      
      Change-Id: Ib0d8b823014a42321b3d67dbea9a9315ea16bd8f
      Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
      b2fe726c
  17. 15 Jul, 2019 1 commit
  18. 12 Jul, 2019 1 commit
    • George Nash's avatar
      Fixed SECURE=0 build for Java · e7d7c369
      George Nash authored
      This fixes issues when building without the security build option
      
      The introspection caused build issues because variables were not used
      
      the security build option was not being exported to the SWIG make file
      
      SWIG make file not checks for SECURE build option. If SECURE is not
      explicity set to zero it defaults to build with security.
      
      Change-Id: I626fdaf890e8b0fd953ad452d10ae9ebf3073ac0
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      e7d7c369
  19. 01 Jul, 2019 1 commit
  20. 10 Jun, 2019 1 commit
    • George Nash's avatar
      Add tcpadapter to Android/update Makefile · 8edc9d03
      George Nash authored
      This updates the Android makefile so it is able to build again.
      Notable changes:
       - add x509x source files to DTLS code
       - changed default value for ANDROID_API from 19 to 23
       - added default values for DYNAMIC, SECURE, and PKI build options
       - updated starting CFLAGS value
         - -fPIE -pie changed to -fPIC
         - -fno-reorder-functions and -fno-defer-pop were removed
           due to warnings about them being unknown tags
       - add misc. security files to the build.
      
      The tcpadapter code is a straight copy/paste of the tcpadapter.c/.h
      from the Linux port. No modifications were made to tcpadapter.
      Only changes made were:
       - added the adapter_receive_state_t to ipcontext.h needed by
         tcpadapter.
      
      Most Makefile changes were obtained by referencing the Makefile
      found in the `swig` branch.
      
      Change-Id: Ifddcac31ad60a42c363206e397760a57466a551a
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      8edc9d03
  21. 24 May, 2019 1 commit
  22. 23 May, 2019 1 commit
    • George Nash's avatar
      Fixes while verifying Android Build · c0463c18
      George Nash authored
      - swig/Makefile was using jni.h from Linux not Android. Although the
        jni.h files are very similar they are not the same resulting in
        different build warnings/errors.
      - oc_introspection_wrap was using logging but did not include oc_log.h
      - Fixed call to AttachCurrentThread when jni.h switched to Android variant.
      - Add some build flags to reduce the build warnings from swig generated code.
      
      Change-Id: Ibb25db39be0056dbea45863bea4c472e157ae423
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      c0463c18
  23. 17 May, 2019 2 commits
    • George Nash's avatar
      Update readme file due to updates in Makefiles · bb41be7e
      George Nash authored
      This updates the documentation now that the Makefile
      has been updated to build the SWIG and Java.
      
      This also removes the make files that are no longer
      needed now that the top level make file can do the
      same build with just a change in build options.
      
      Change-Id: Ic81c5656f6f7f68983f0ed2caa6682591ac7dbc4
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      bb41be7e
    • George Nash's avatar
      Update Android Makefile for JAVA · d1932b60
      George Nash authored
      This change merges in parts of Makefile-swig.mk and
      Makefile-swig-otgc.mk into the primary make file.
      
      This adds the ability to build the SWIG output by specifying
      JAVA=1 as part of the build instruction.
      
      The plan is to remove both Makefile-swig.mk and
      Makefile-swig-otgc.mk in a future commit to reduce maintance
      across multiple build files.
      
      Change-Id: Ief08bb90833ad0010f67c9e317225cfea32ddc17
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      d1932b60
  24. 02 May, 2019 1 commit
  25. 01 May, 2019 2 commits
    • George Nash's avatar
      Expose oc_core_res.h to Java · 90124d93
      George Nash authored
      This exposes most of oc_core_res.h to the Java language. With a few
      exceptions.
      
      Functions oc_store_uri and oc_core_populate_resource are not exposed
      yet because due to handling of callbacks and oc_string_t pointers.
      
      The oc_platform_info_t struct was named not just typedefed
      The oc_device_infor_t struct was named not just typedefed
      
      Structs were given names so the swig scripts could ignore exposing
      parts of the structs that are can not be used in Java.
      
      Change-Id: I29e3461ea925d001df2769b23db5e5ff49a53a5b
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      90124d93
    • George Nash's avatar
      Expose oc_buffer_settings.h to Java · 0a0c9b91
      George Nash authored
      Change-Id: I4d01be4bd54790017d0bb8f8d8a891cb794b6723
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      0a0c9b91
  26. 29 Apr, 2019 1 commit
  27. 25 Apr, 2019 1 commit
  28. 18 Apr, 2019 2 commits
  29. 16 Apr, 2019 2 commits
  30. 12 Apr, 2019 1 commit
  31. 05 Mar, 2019 1 commit
  32. 21 Feb, 2019 1 commit
  33. 14 Feb, 2019 1 commit
  34. 14 Jan, 2019 1 commit
  35. 20 Dec, 2018 1 commit