From: Jay Sharma Date: Wed, 30 Mar 2016 04:20:48 +0000 (+0530) Subject: [Easy-Setup] Fixed arduino issue. X-Git-Tag: 1.2.0+RC1~355^2^2~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bdbfe9ec9c30249ee3d7eece8c47b6979e41448e;p=platform%2Fupstream%2Fiotivity.git [Easy-Setup] Fixed arduino issue. Change-Id: I3b167eccaa5835288b5a560f070882df996aeb9e Signed-off-by: Jay Sharma Reviewed-on: https://gerrit.iotivity.org/gerrit/7453 Reviewed-by: Sandipan Patra Tested-by: jenkins-iotivity Reviewed-by: Madan Lanka --- diff --git a/service/easy-setup/enrollee/arduino/onboarding.cpp b/service/easy-setup/enrollee/arduino/onboarding.cpp index 42551d7..c54c360 100644 --- a/service/easy-setup/enrollee/arduino/onboarding.cpp +++ b/service/easy-setup/enrollee/arduino/onboarding.cpp @@ -66,16 +66,8 @@ bool ESOnboard(const char * ssid, const char* passwd, NetworkEventCallback cb) if (ESSoftapOnboarding()) { - if (ESSoftapAtEnrollee()) - { - OIC_LOG(DEBUG, ES_ENROLLEE_TAG, "Create SoftAp at enrollee"); - ESCreateSoftap(ssid, passwd, cb); - } - else - { - OIC_LOG(DEBUG, ES_ENROLLEE_TAG, "Connecting to Mediator SoftAp"); - ConnectToWiFiNetwork(ssid, passwd, cb); - } + OIC_LOG(DEBUG, ES_ENROLLEE_TAG, "Connecting to Mediator SoftAp"); + ConnectToWiFiNetwork(ssid, passwd, cb); return true; } else if (ESBleOnboarding())