@@ -236,6 +236,7 @@ void CONFIG::print_config()
236
236
{
237
237
// use biggest size for buffer
238
238
char sbuf[MAX_PASSWORD_LENGTH+1 ];
239
+ uint8_t ipbuf[4 ];
239
240
byte bbuf=0 ;
240
241
int ibuf=0 ;
241
242
if (CONFIG::read_byte (EP_WIFI_MODE, &bbuf )) {
@@ -257,7 +258,6 @@ void CONFIG::print_config()
257
258
} else {
258
259
Serial.println (F (" Error reading SSID" ));
259
260
}
260
- // if (CONFIG::read_string(EP_PASSWORD, sbuf , MAX_PASSWORD_LENGTH))Serial.println(sbuf);
261
261
262
262
if (CONFIG::read_byte (EP_IP_MODE, &bbuf )) {
263
263
Serial.print (F (" IP Mode: " ));
@@ -272,23 +272,23 @@ void CONFIG::print_config()
272
272
Serial.println (F (" Error reading IP mode" ));
273
273
}
274
274
275
- if (CONFIG::read_buffer (EP_IP_VALUE,(byte *)sbuf , IP_LENGTH)) {
275
+ if (CONFIG::read_buffer (EP_IP_VALUE,(byte *)ipbuf , IP_LENGTH)) {
276
276
Serial.print (F (" IP: " ));
277
- Serial.println (wifi_config. ip2str ((byte *)sbuf ));
277
+ Serial.println (IPAddress (ipbuf). toString ( ));
278
278
} else {
279
279
Serial.println (F (" Error reading IP" ));
280
280
}
281
281
282
- if (CONFIG::read_buffer (EP_MASK_VALUE, (byte *)sbuf , IP_LENGTH)) {
282
+ if (CONFIG::read_buffer (EP_MASK_VALUE, (byte *)ipbuf , IP_LENGTH)) {
283
283
Serial.print (F (" Subnet: " ));
284
- Serial.println (wifi_config. ip2str ((byte *)sbuf ));
284
+ Serial.println (IPAddress (ipbuf). toString ( ));
285
285
} else {
286
286
Serial.println (F (" Error reading subnet" ));
287
287
}
288
288
289
- if (CONFIG::read_buffer (EP_GATEWAY_VALUE, (byte *)sbuf , IP_LENGTH)) {
289
+ if (CONFIG::read_buffer (EP_GATEWAY_VALUE, (byte *)ipbuf , IP_LENGTH)) {
290
290
Serial.print (F (" Gateway: " ));
291
- Serial.println (wifi_config. ip2str ((byte *)sbuf ));
291
+ Serial.println (IPAddress (ipbuf). toString ( ));
292
292
} else {
293
293
Serial.println (F (" Error reading gateway" ));
294
294
}
@@ -443,5 +443,17 @@ void CONFIG::print_config()
443
443
Serial.println (F (" Enabled" ));
444
444
#else
445
445
Serial.println (F (" Disabled" ));
446
+ #endif
447
+ Serial.print (F (" Pin 2 Recovery: " ));
448
+ #ifdef RECOVERY_FEATURE
449
+ Serial.println (F (" Enabled" ));
450
+ #else
451
+ Serial.println (F (" Disabled" ));
452
+ #endif
453
+ Serial.print (F (" Authentication: " ));
454
+ #ifdef AUTHENTICATION_FEATURE
455
+ Serial.println (F (" Enabled" ));
456
+ #else
457
+ Serial.println (F (" Disabled" ));
446
458
#endif
447
459
}
0 commit comments