Commit 8fbcd94f44e0f7bd95020f4b3458c1862114bdbd

Authored by Imanol-Mikel Barba Sabariego
1 parent a2a87aa6

--no commit message

Project/applications/smartcities/configServer.c
@@ -143,7 +143,8 @@ void configServer_setClientParameters() @@ -143,7 +143,8 @@ void configServer_setClientParameters()
143 } 143 }
144 144
145 strcpy(config.passphrase, (char*)arg_passphraseStr); 145 strcpy(config.passphrase, (char*)arg_passphraseStr);
146 - strcpy(config.wepkey, (char*)arg_passphraseStr); 146 + //strcpy(config.wepkey, (char*)arg_passphraseStr);
  147 + strcpy(config.wepkey, "0009031991");
147 } 148 }
148 libwismart_RegistrySet(&geo,&config); 149 libwismart_RegistrySet(&geo,&config);
149 } 150 }
@@ -243,12 +244,8 @@ uint32_t configServer_dynamicCb(char* varName, char** varValue, uint8_t* varAllo @@ -243,12 +244,8 @@ uint32_t configServer_dynamicCb(char* varName, char** varValue, uint8_t* varAllo
243 if(value == NULL){ 244 if(value == NULL){
244 return WISMART_SERVER_ERR_MEM; 245 return WISMART_SERVER_ERR_MEM;
245 } 246 }
246 -  
247 - if(profile_enabled == PROFILE_ENABLED) {  
248 - strcpy(value,config.passphrase);  
249 - }else{  
250 - strcpy((char*)value, "N/A");  
251 - } 247 +
  248 + strcpy(value,config.passphrase);
252 249
253 /* Display only visible characters */ 250 /* Display only visible characters */
254 uint32_t index; 251 uint32_t index;
Project/applications/smartcities/main2.c
@@ -160,7 +160,6 @@ char** timestamp_datas(char* value[],unsigned long timestamp, uint8_t* sensors){ @@ -160,7 +160,6 @@ char** timestamp_datas(char* value[],unsigned long timestamp, uint8_t* sensors){
160 return cooked_data; 160 return cooked_data;
161 } 161 }
162 162
163 -  
164 void wifi_connect(void) 163 void wifi_connect(void)
165 { 164 {
166 init_registry(); 165 init_registry();