\r
private static final int BUFFER_SIZE = 1024;\r
private String filePath = "";\r
+ private boolean isSecurityEnabled = false;\r
//create platform config\r
PlatformConfig cfg;\r
\r
@Override\r
public void onClick(View v) {\r
filePath = getFilesDir().getPath() + "/";\r
-\r
+ isSecurityEnabled = true;\r
//copy json when application runs first time\r
SharedPreferences wmbPreference = PreferenceManager.getDefaultSharedPreferences\r
(getApplicationContext());\r
\r
mWiFiProvConfig = new WiFiProvConfig(mEnrollerSsid,\r
mEnrollerPassword);\r
- mWiFiProvConfig.setSecured(true);\r
+ mWiFiProvConfig.setSecured(isSecurityEnabled);\r
mDevice = mDeviceFactory\r
.newEnrolleeDevice(mWiFiProvConfig);\r
Thread thread = new Thread() {\r
\r
mWiFiProvConfig = new WiFiProvConfig(mEnrollerSsid,\r
mEnrollerPassword);\r
- mWiFiProvConfig.setSecured(true);\r
+ mWiFiProvConfig.setSecured(isSecurityEnabled);\r
mWiFiOnBoardingConfig = new WiFiOnBoardingConfig();\r
\r
/*\r