From 8fbcd94f44e0f7bd95020f4b3458c1862114bdbd Mon Sep 17 00:00:00 2001 From: Imanol-Mikel Barba Sabariego Date: Sun, 25 May 2014 12:04:53 +0000 Subject: [PATCH] --- Project/applications/smartcities/configServer.c | 11 ++++------- Project/applications/smartcities/main2.c | 1 - 2 files changed, 4 insertions(+), 8 deletions(-) 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(); -- libgit2 0.22.2