[CA-Integration] Use 5298 port for MC query since CA uses 5298 as MC port
authorSashi Penta <sashi.kumar.penta@intel.com>
Sat, 20 Dec 2014 10:16:37 +0000 (02:16 -0800)
committerSashi Penta <sashi.kumar.penta@intel.com>
Sat, 20 Dec 2014 10:16:37 +0000 (02:16 -0800)
Change-Id: Id29c3c4fa52e3f1b4c49fb1652e16cc6485d951c
Signed-off-by: Sashi Penta <sashi.kumar.penta@intel.com>
resource/csdk/stack/samples/linux/SimpleClientServer/occlient.cpp

index 9f70f52..b3b640e 100644 (file)
@@ -508,7 +508,12 @@ int InitDiscovery()
     }
     else
     {
+    #ifdef CA_INT
+        // TODO-CA CA is using 5298 for MC. Why 5298?
+        strcpy(szQueryUri, "coap://224.0.1.187:5298/oc/core");
+    #else
         strcpy(szQueryUri, OC_WELL_KNOWN_QUERY);
+    #endif
     }
     cbData.cb = discoveryReqCB;
     cbData.context = (void*)DEFAULT_CONTEXT_VALUE;