diff --git a/Project/applications/smartcities/configServer.c b/Project/applications/smartcities/configServer.c index ee7cb4c..249490e 100644 --- a/Project/applications/smartcities/configServer.c +++ b/Project/applications/smartcities/configServer.c @@ -143,7 +143,8 @@ void configServer_setClientParameters() } strcpy(config.passphrase, (char*)arg_passphraseStr); - strcpy(config.wepkey, (char*)arg_passphraseStr); + //strcpy(config.wepkey, (char*)arg_passphraseStr); + strcpy(config.wepkey, "0009031991"); } libwismart_RegistrySet(&geo,&config); } @@ -243,12 +244,8 @@ uint32_t configServer_dynamicCb(char* varName, char** varValue, uint8_t* varAllo if(value == NULL){ return WISMART_SERVER_ERR_MEM; } - - if(profile_enabled == PROFILE_ENABLED) { - strcpy(value,config.passphrase); - }else{ - strcpy((char*)value, "N/A"); - } + + strcpy(value,config.passphrase); /* Display only visible characters */ uint32_t index; diff --git a/Project/applications/smartcities/main2.c b/Project/applications/smartcities/main2.c index f7aefff..85044e3 100644 --- a/Project/applications/smartcities/main2.c +++ b/Project/applications/smartcities/main2.c @@ -160,7 +160,6 @@ char** timestamp_datas(char* value[],unsigned long timestamp, uint8_t* sensors){ return cooked_data; } - void wifi_connect(void) { init_registry();