Updated Iotivity to compile DTLS modules using SCons
[contrib/iotivity.git] / resource / csdk / stack / samples / linux / secure / occlientbasicops.cpp
index ce051d0..3cf8256 100644 (file)
@@ -87,6 +87,9 @@ OCStackResult InvokeOCDoResource(std::ostringstream &query,
 
     ret = OCDoResource(&handle, method, query.str().c_str(), 0,
             (method == OC_REST_PUT || method == OC_REST_POST) ? putPayload.c_str() : NULL,
+#ifdef CA_INT
+            (OC_WIFI),
+#endif
             qos, &cbData, options, numOptions);
 
     if (ret != OC_STACK_OK)
@@ -260,7 +263,11 @@ int InitDiscovery()
     cbData.cb = discoveryReqCB;
     cbData.context = NULL;
     cbData.cd = NULL;
-    ret = OCDoResource(&handle, OC_REST_GET, szQueryUri, 0, 0, OC_LOW_QOS, &cbData, NULL, 0);
+    ret = OCDoResource(&handle, OC_REST_GET, szQueryUri, 0, 0,
+#ifdef CA_INT
+            (OC_WIFI),
+#endif
+            OC_LOW_QOS, &cbData, NULL, 0);
     if (ret != OC_STACK_OK)
     {
         OC_LOG(ERROR, TAG, "OCStack resource error");