1. 23 May, 2019 6 commits
    • Jozef Kralik's avatar
      [LITE-43] Implement Cloud service · 04471e61
      Jozef Kralik authored
      Provides API for connect a device to the Cloud Interface.
      
      Cloud Sample apps/cloud_linux.c
      Cloud API: service/cloud/include/cloud.h
      
      Limitations:
       * Cloud always try to connect to the Cloud Interface
       * Delays are not configurable (ping, publish resources, ...)
       * Sid isn't verified
      
      Change-Id: I3faf440f0fd00648cf0e01f50763d80c785cd734
      Signed-off-by: Jozef Kralik's avatarJozef Kralik <jojo.lwin@gmail.com>
      04471e61
    • George Nash's avatar
      Fix DEBUG output for Windows · 9ebd8821
      George Nash authored
      Currently on windows the mbedtls_debug output prints large
      blocks of unreadable text. Eeading the debug log is quite
      difficult.
      
      By seting the snprintf function for mbedtls the debug output
      prints properly.
      
      Change-Id: I9fdf2a6754b49f136cc07d2f52ced6905a701dda
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      9ebd8821
    • George Nash's avatar
      Rework of oc_introspection.h · 55de9c39
      George Nash authored
      The oc_set_introspection_file is no long avalible. Now
      it will default to the file IDD_<device_index> from oc_storage.
      
      This adds the oc_set_introspection_data function to
      the oc_introspection.h header. This enables setting
      the introspection data by passing in an array of bytes via
      the oc_set_introspection_data function.
      
      The compiler define OC_IDD_FILE was change to OC_IDD_API since
      we no longer specify file names.
      
      As a side in the windows  build OC_IDD_API is set as the
      default.
      
      Users can get the same behavior as building the code without
      OC_IDD_API by including server_introspection.dat.h in their
      server program and calling
      oc_set_interspection_data(0,
                                introspection_Data,
                                introspection_data_size);
      
      The function oc_create_introspection_resourcewas moved
      to a new internal header file oc_introspection_internal.h.
      The function is only expected to be called by the framework
      and there is no need to expose it to end users as public APIs.
      
      Change-Id: I9ec452afbf96510c82557eeb1b8b79a8949eeb25
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      55de9c39
    • George Nash's avatar
      Ran clang-formater on 5 files · 1d7cd051
      George Nash authored
      Change-Id: Ie0fa5d9da90a4c357895bd95040f44bf78008693
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      1d7cd051
    • George Nash's avatar
      Removed possible loss of data warnings · 87d1a731
      George Nash authored
      For `timestamp_parse.c` the compiler complained that the
      `nsec` variable was larger than the `offset` variable.
      Since the code in question was just variable initialization
      the line was broke into two lines.
      
      For `timestamp_tm.c` there is no need to use uint16_t for the
      intermediate result of the calculations. The final result is
      place into an `int` type. No need to force the data into a smaller
      data type.
      
      The conversion from seconds to days (i.e. sec / 86400) could
      be larger than the uint32_t.  If we are counting number of
      seconds since epoch the date that the calculation will be larger
      than uint32_t is January 20, 11761191. Yes that is 11.7 million
      years! We should be safe casting the number to an uint32_t.
      
      Change-Id: I2b4d6ea729a1a0bec3581db26335cb72331bd70f
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      87d1a731
    • George Nash's avatar
      Ran clang-format on base64test · 4530ced4
      George Nash authored
      Change-Id: I73b73113074a822f352fed444f30566516a3cf11
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      4530ced4
  2. 18 May, 2019 1 commit
  3. 10 May, 2019 1 commit
    • George Nash's avatar
      Changed StringToEnpoint test if OC_TCP not defined · 67ac82a7
      George Nash authored
      If the code were built with out OC_TCP build predefine
      the unit test would fail because it tested against enpoints
      that would only work if OC_TCP were defined.
      
      This commit spilts the test into two parts. The part that
      only works with OC_TCP defined and the part that works
      regaurdless of the value of OC_TCP.
      
      Change-Id: I56598db9e6dbb6401e8adde0e3f7393dfd9b93a1
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      67ac82a7
  4. 03 May, 2019 2 commits
    • George Nash's avatar
      Change cast for intpool to int64_t · 31093be8
      George Nash authored
      The internal int type was changed to int64_t this
      cast to int was missed.  Error found using the
      Android compiler.
      
      Change-Id: I01e203e67a785e265ee658c183d43da673f45b0a
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      31093be8
    • George Nash's avatar
      Removed possible loss of data warnings · 312ce5ec
      George Nash authored
      When assigning from a larger data type to a smaller data type
      the Visual Studio compiler will throw a warning C4244 indicating
      that there is a possible loss of data.
      
      All timestamp calculations are expected to fit in the smaller
      data type. To help verify this assumption the calculation is
      not placed into the smaller data type till after doing an
      assert against the max data type.
      
      Change-Id: I58fdae980af2b63ae3113d43c5913a9b77a67880
      Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
      312ce5ec
  5. 30 Apr, 2019 1 commit
  6. 29 Apr, 2019 1 commit
  7. 17 Apr, 2019 2 commits
  8. 16 Apr, 2019 1 commit
  9. 12 Apr, 2019 1 commit
  10. 11 Apr, 2019 2 commits
  11. 08 Apr, 2019 9 commits
  12. 05 Apr, 2019 2 commits
  13. 03 Apr, 2019 1 commit
  14. 31 Mar, 2019 2 commits
  15. 28 Mar, 2019 1 commit
  16. 19 Mar, 2019 2 commits
  17. 15 Mar, 2019 3 commits
  18. 21 Feb, 2019 2 commits