1. 23 Nov, 2017 2 commits
    • Senthil Kumar G S's avatar
      [IOT-2906][ES] Remove "href" from child response. · d698f81a
      Senthil Kumar G S authored
      For requests which come directly to child resources
      (/WiFiConfResURI, /CoapCloudConfResURI and /DevConfResURI),
      this patch will remove the "href" property from the response
      as spec doesn't mandate the addition of "href" in the response.
      
      And also, CTT expects the response from direct request to any child
      to be same as the response which comes for the same child
      through collection.
      
      For example:
      Properties in "rep" for '/WiFiConfResURI' should be same as
      the properties in the direct response for GET from '/WiFiConfResURI' resource.
      
      Currently "href" is not included in "rep" for child resources.
      But it is included in the direct response for GET/POST.
      When CTT compares both responses, it finds them different due of "href".
      
      This patch resolves the issue and still conforms to spec.
      
      Change-Id: I017bed18d3e0ad568b662a03d9bd80134538a8c0
      Signed-off-by: default avatarSenthil Kumar G S <senthil.gs@samsung.com>
      d698f81a
    • Senthil Kumar G S's avatar
      [IOT-2904][ES] Fix for issues found through CTT. · fb2e25fc
      Senthil Kumar G S authored
      1. If one of the resources in the POST request over batch
      has invalid properties, then the response should include an
      empty "rep" for those resources.
      For all other resources with valid properties in the request,
      "rep" should include all the properties.
      
      2. Allowing "cn" property to be set to ES_CONNECT_NONE.
      
      Change-Id: Ib819bed7a126717cc56df0fb32b3d9f3ec570682
      Signed-off-by: default avatarSenthil Kumar G S <senthil.gs@samsung.com>
      fb2e25fc
  2. 20 Nov, 2017 2 commits
  3. 06 Nov, 2017 1 commit
  4. 30 Oct, 2017 1 commit
  5. 19 Oct, 2017 1 commit
  6. 18 Oct, 2017 2 commits
    • Abhishek Pandey's avatar
      Enable self link in collections · 8c557210
      Abhishek Pandey authored
      JIRA IOT-2742 https://jira.iotivity.org/browse/IOT-2742
      
      - Enabled support for self link in collections.
      - API OCLinksPayloadArrayCreate() modified to allow self links.
      - New parameter (bool) in the API now allows to have a self link with
        "rel":["self", "item"], in links array as per OCF Core Spec.
      
      Change-Id: I1f2e02dd33c993dc4b28fbc447b8d286c1f7f804
      Signed-off-by: default avatarAbhishek Pandey <abhi.siso@samsung.com>
      8c557210
    • Ankur Bansal's avatar
      [EasySetup] Fix links in baseline & ll response · dad17f20
      Ankur Bansal authored
      Update oic.r.easysetup baseline and link list response to correctly fill
      links property.
      Use OCLinksPayloadArrayCreate API to create the links payload for batch
      & link list interface. OCLinksPayloadArrayCreate API internally takes
      care of creating the most part of payload based on the properties of the
      resource. This will replace the logic of creating each property of links
      payload for each of the easy setup resources from the code.
      In link list interface response, add handling for both OCF & OIC
      response (for backward compatibility).
      
      Bug:https://jira.iotivity.org/browse/IOT-2711
      
      Change-Id: I46ca2e2d635cb78e8c7fc7c5ef95d9e16327abb9
      Signed-off-by: default avatarAnkur Bansal <ankur.b1@samsung.com>
      (cherry picked from commit 787a73bd)
      dad17f20
  7. 17 Oct, 2017 1 commit
  8. 13 Oct, 2017 2 commits
  9. 18 Sep, 2017 1 commit
  10. 15 Sep, 2017 1 commit
  11. 13 Sep, 2017 2 commits
    • Ankur Bansal's avatar
      [IOT-2628][EasySetup]Add new prop. swat,swet · 5617a85d
      Ankur Bansal authored
      Add new mandatory properties to oic.r.wificonf
      - swat: Enrollee's supported Wi-Fi Authentication Types
      - swet: Enrollee's supported Wi-Fi Encryption Types
      - Update Enrollee sample apps (Linux and Tizen).
      
      Note: This impacts Easy Setup Enrollee API "ESSetDeviceProperty".
      
      Change-Id: Ic765671dfbe3a4e1c8a857ef6ae1d3dcb9ba783e
      Signed-off-by: default avatarAnkur Bansal <ankur.b1@samsung.com>
      5617a85d
    • Ankur Bansal's avatar
      [IOT-2628][EasySetup]Update WifiConf prop. types · 132838c4
      Ankur Bansal authored
      - Change properties from integer to string enums: swmt, swf, wat, wet
      - Change supported frequencies from single value to array.
      - Create type converters for enum to string and string to enum.
      - Remove EOF marker in enum WIFI_MODE.
      - Update Enrollee sample apps (Linux and Tizen).
      - Cleanup some unused code in easysetup.c.
      - Fixed unit test cases for Enrollee and Mediator.
      
      Note: This impacts Easy Setup Enrollee API "ESSetDeviceProperty".
      
      Thanks-To: Abhishek Pandey <abhi.siso@samsung.com>
      Change-Id: Iea8191616cea89a0273e0f5486bd259735e914fa
      Signed-off-by: default avatarAbhishek Pandey <abhi.siso@samsung.com>
      Signed-off-by: default avatarAnkur Bansal <ankur.b1@samsung.com>
      132838c4
  12. 07 Sep, 2017 1 commit
  13. 31 Jul, 2017 1 commit
  14. 06 Jun, 2017 1 commit
  15. 20 May, 2017 1 commit
  16. 17 Apr, 2017 1 commit
  17. 31 Mar, 2017 1 commit
  18. 25 Mar, 2017 1 commit
  19. 09 Mar, 2017 1 commit
  20. 24 Feb, 2017 1 commit
  21. 20 Feb, 2017 1 commit
  22. 16 Feb, 2017 2 commits
  23. 23 Jan, 2017 1 commit
  24. 09 Jan, 2017 1 commit
  25. 30 Dec, 2016 1 commit
  26. 15 Dec, 2016 1 commit
  27. 07 Dec, 2016 1 commit
  28. 06 Dec, 2016 1 commit
    • Parkhi's avatar
      Update a payload format to be compatible to OIC spec in easysetup · cb323a1b
      Parkhi authored
      1. In a response for get/post request with batch interface,
         "rep" keyword should be included for containing child resource's properties
         for each child resource.
      2. Provisioning resource is a collection resource so it should have
         a "oic.wk.col" resource type.
      3. "links" property for baseline and linklist interfaces should include a
         "p"(i.e. policy) property.
      
      e.g. response for baseline:
      {
        "rt":[
          "oic.wk.prov",
          "oic.wk.col"
        ],
        "if":[
          "oic.if.baseline",
          "oic.if.ll",
          "oic.if.b"
        ],
        "ps":0,
        "lec":0,
        "links":[
          {
            "href":"/WiFiProvisioningResURI",
            "rt":[
              "oic.wk.wifi"
            ],
            "if":[
              "oic.if.baseline"
            ],
            "p":{
              "bm":3
            }
          },
          {
            "href":"/DevConfProvisioningResURI",
            "rt":[
              "oic.wk.devconf"
            ],
            "if":[
              "oic.if.baseline"
            ],
            "p":{
              "bm":3
            }
          },
          {
            "href":"/CloudServerProvisioningResURI",
            "rt":[
              "oic.wk.cloudserver"
            ],
            "if":[
              "oic.if.baseline"
            ],
            "p":{
              "bm":3
            }
          }
        ]
      }
      
      e.g. response for linklist:
      {
        "links":[
          {
            "href":"/WiFiProvisioningResURI",
            "rt":[
              "oic.wk.wifi"
            ],
            "if":[
              "oic.if.baseline"
            ],
            "p":{
              "bm":3
            }
          },
          {
            "href":"/DevConfProvisioningResURI",
            "rt":[
              "oic.wk.devconf"
            ],
            "if":[
              "oic.if.baseline"
            ],
            "p":{
              "bm":3
            }
          },
          {
            "href":"/CloudServerProvisioningResURI",
            "rt":[
              "oic.wk.cloudserver"
            ],
            "if":[
              "oic.if.baseline"
            ],
            "p":{
              "bm":3
            }
          }
        ]
      }
      
      e.g. response for batch:
      [
        {
          "href":"/ProvisioningResURI",
          "rep":{
            "if":[
              "oic.if.baseline",
              "oic.if.ll",
              "oic.if.b"
            ],
            "rt":[
              "oic.wk.prov",
              "oic.wk.col"
            ],
            "ps":0,
            "lec":0
          }
        },
        {
          "href":"/WiFiProvisioningResURI",
          "rep":{
            "if":[
              "oic.if.baseline"
            ],
            "rt":[
              "oic.wk.wifi"
            ],
            "swmt":[
              2,
              3,
              4
            ],
            "swf":1,
            "tnn":"",
            "cd":"",
            "wat":0,
            "wet":0
          }
        },
        {
          "href":"/CloudServerProvisioningResURI",
          "rep":{
            "if":[
              "oic.if.baseline"
            ],
            "rt":[
              "oic.wk.cloudserver"
            ],
            "ac":"",
            "apn":"",
            "cis":""
          }
        },
        {
          "href":"/DevConfProvisioningResURI",
          "rep":{
            "if":[
              "oic.if.baseline"
            ],
            "rt":[
              "oic.wk.devconf"
            ],
            "dn":"Test Device",
            "mnmo":"Test Model Number",
            "loc":"",
            "lang":"",
            "ctry":""
          }
        }
      
      ]
      
      Change-Id: I13ccda6fedb7c628dc77cc13e84c1c10c0e1b487
      Signed-off-by: default avatarJihun Ha <jihun.ha@samsung.com>
      Signed-off-by: default avatarParkhi <h_w.park@samsung.com>
      Reviewed-on: https://gerrit.iotivity.org/gerrit/14855Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
      Reviewed-by: default avatarUze Choi <uzchoi@samsung.com>
      (cherry picked from commit e1409c4b)
      Reviewed-on: https://gerrit.iotivity.org/gerrit/15139
      cb323a1b
  29. 05 Dec, 2016 1 commit
  30. 17 Oct, 2016 2 commits
  31. 14 Oct, 2016 1 commit
  32. 13 Oct, 2016 1 commit
  33. 11 Oct, 2016 1 commit