[Arduino Due] Arduino wifi multicast defalut return value changed to CA_STATUS_OK 49/5849/6
authorSandipan Patra <sandipan.p@samsung.com>
Mon, 14 Mar 2016 08:49:51 +0000 (14:19 +0530)
committerJon A. Cruz <jon@joncruz.org>
Wed, 16 Mar 2016 07:53:24 +0000 (07:53 +0000)
Change-Id: If7b28c30af4093771aee724356114ca5d4929cd4
Signed-off-by: Sandipan Patra <sandipan.p@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5849
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
resource/csdk/connectivity/src/ip_adapter/arduino/caipserver_wifi.cpp

index f139af8..02bcaea 100644 (file)
@@ -127,7 +127,11 @@ CAResult_t CAIPStartMulticastServer(const char *localAddress, const char *multic
     // wifi shield does not support multicast
     OIC_LOG(DEBUG, TAG, "IN");
     OIC_LOG(DEBUG, TAG, "OUT");
-    return CA_NOT_SUPPORTED;
+    //Arduino wifi shiled does not support multicast.
+    //OCInit() is failing if an error code is returned here,
+    //hence blocking even uni-cast operations.
+    //So default return value is changed to CA_STATUS_OK.
+    return CA_STATUS_OK;
 }
 
 CAResult_t CAIPStartServer()