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')
{
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;
{
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;