[Arduino Enrollee Application] Additional parameter for security in InitEasySetup.
authorSandipan Patra <sandipan.p@samsung.com>
Fri, 19 Feb 2016 06:31:22 +0000 (12:01 +0530)
committerMadan Lanka <lanka.madan@samsung.com>
Fri, 19 Feb 2016 09:30:06 +0000 (09:30 +0000)
Arduino warning fix for softap.cpp

Change-Id: I87f9341afbbed78eaf240bd5163349a4f5be517c
Signed-off-by: Sandipan Patra <sandipan.p@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5067
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
service/easy-setup/enrollee/SConscript
service/easy-setup/enrollee/src/onboarding.cpp
service/easy-setup/sampleapp/enrollee/arduino/enrolleewifi.cpp

index db7a566b9e289c98fd798d007d799a0101bf8042..47b895edd7e1d8780f02642be596bf3133664948 100644 (file)
@@ -138,6 +138,7 @@ if target_os == 'arduino':
        es_sdk_static = enrollee_env.StaticLibrary('ESEnrolleeSDK', [
                                        enrollee_env.get('SRC_DIR') + '/service/easy-setup/enrollee/src/easysetup.cpp',
                                        enrollee_env.get('SRC_DIR') + '/service/easy-setup/enrollee/src/onboarding.cpp',
+                                       enrollee_env.get('SRC_DIR') + '/service/easy-setup/enrollee/src/softap.cpp',
                                        enrollee_env.get('SRC_DIR') + '/service/easy-setup/enrollee/src/resourcehandler.cpp',
                                        enrollee_env.get('SRC_DIR') + '/service/easy-setup/enrollee/arduino/wifi/networkhandler.cpp'])
        enrollee_env.InstallTarget(es_sdk_static, 'libESEnrolleeSDK')
index c9ea32344658f72e863f41c501d8df447b7248f7..82131f55136085e9947ff0c48672b648d94c6612 100644 (file)
@@ -68,12 +68,12 @@ bool ESOnboard(const char * ssid, const char* passwd, NetworkEventCallback cb)
     {
         if (ESSoftapAtEnrollee())
         {
-            OC_LOG(DEBUG, ES_ENROLLEE_TAG, "Create softap at enrollee");
+            OC_LOG(DEBUG, ES_ENROLLEE_TAG, "Create SoftAp at enrollee");
             ESCreateSoftap(ssid, passwd, cb);
         }
         else
         {
-            OC_LOG(DEBUG, ES_ENROLLEE_TAG, "Connecting to SoftAp");
+            OC_LOG(DEBUG, ES_ENROLLEE_TAG, "Connecting to Mediator SoftAp");
             ConnectToWiFiNetwork(ssid, passwd, cb);
         }
         return true;
index b783a17a1daaec203b2238a4c4161881f21448a4..f00c8894423691794184979beb52d036ea0c7cb4 100644 (file)
@@ -173,7 +173,8 @@ void StartEasySetup()
 {
     OC_LOG(DEBUG, TAG, "OCServer is starting...");
 
-    if(InitEasySetup(CT_ADAPTER_IP, ssid, passwd, EventCallbackInApp) == ES_ERROR)
+    //InitEasySetup with sercurity mode disabled for arduino
+    if(InitEasySetup(CT_ADAPTER_IP, ssid, passwd, false, EventCallbackInApp) == ES_ERROR)
     {
         OC_LOG(ERROR, TAG, "OnBoarding Failed");
         return;