From bdbfe9ec9c30249ee3d7eece8c47b6979e41448e Mon Sep 17 00:00:00 2001 From: Jay Sharma Date: Wed, 30 Mar 2016 09:50:48 +0530 Subject: [PATCH] [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 --- service/easy-setup/enrollee/arduino/onboarding.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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()) -- 2.7.4