Document ZoneID for IPv6 host address in
authorZiran Sun <ziran.sun@samsung.com>
Tue, 14 Feb 2017 14:31:03 +0000 (14:31 +0000)
committerZiran Sun <ziran.sun@samsung.com>
Tue, 21 Feb 2017 15:34:48 +0000 (15:34 +0000)
OCPlatform::constructResourceObject.

Bug: https://jira.iotivity.org/browse/IOT-1758
Change-Id: I0b080f4f97748b5435d5594b45b0634efc42ad2f
Signed-off-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17269
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
java/iotivity-android/src/main/java/org/iotivity/base/OcPlatform.java
resource/include/OCPlatform.h

index 9eccc63..2b604a2 100644 (file)
@@ -987,8 +987,11 @@ public final class OcPlatform {
      * Additionally, you can only create this object if OcPlatform was initialized to be a Client
      * or Client/Server.
      *
-     * @param host                a string containing a resolvable host address of the server holding
-     *                            the resource
+     * @param host                a string containing a resolvable host address of the server
+     *                            holding the resource. Currently this should be in the format of
+     *                            coap://address:port for IPv4  and in the format of
+     *                            coap://[address%25ZoneID]:port for IPv6. In the future,
+     *                            we expect "coap:" section is removed from this format.
      * @param uri                 the rest of the resource's URI that will permit messages to be
      *                            properly routed.
      *                            Example: /a/light
index f934227..e4c2b0e 100644 (file)
@@ -618,9 +618,10 @@ namespace OC
          * shared ptr.
          *
          * @param host a string containing a resolvable host address of the server
-         *           holding the resource. Currently this should be in the format
-         *           coap://address:port, though in the future, we expect this to
-         *           change to //address:port
+         *           holding the resource. Currently this should be in the format of
+         *           coap://address:port for IPv4 and in the format of
+         *           coap://[address%25ZoneID]:port for IPv6. In the future, we expect
+         *           "coap:" section is removed from this format.
          *
          * @param uri the rest of the resource's URI that will permit messages to be
          *           properly routed.  Example: /a/light