@@ -232,14 +232,6 @@ void startWebServer()
232232 const AsyncWebParameter * p = request -> getParam ("miscConfigInfo" , true);
233233 prefs .begin ("miscConfigInfo" , false, nvsPartition );
234234 boolean success = prefs .putBytes ("miscConfigInfo" , p -> value ().c_str (), p -> value ().length () + 1 );
235- // print length then string then bytes in ascii
236- Serial .println (p -> value ().length () + 1 );
237- Serial .println (p -> value ());
238- for (size_t i = 0 ; i < p -> value ().length () + 1 ; i ++ ) {
239- Serial .print ((uint8_t )p -> value ().c_str ()[i ], DEC );
240- Serial .print (" " );
241- }
242- Serial .println ();
243235 prefs .end ();
244236 if (success ) {
245237 request -> send (200 , "text/plain" , "OK" );
@@ -253,19 +245,11 @@ void startWebServer()
253245
254246 server .on ("/loadMiscConfigInfo.json" , HTTP_GET , [](AsyncWebServerRequest * request ) {
255247 prefs .begin ("miscConfigInfo" , true, nvsPartition );
256- Serial .println ("Loading miscConfigInfo:" );
257248 if (prefs .isKey ("miscConfigInfo" )) {
258249 size_t len = prefs .getBytesLength ("miscConfigInfo" ); // Preferences library allows long byte arrays but limits strings
259250 char buf [len ];
260251 prefs .getBytes ("miscConfigInfo" , buf , len );
261252 request -> send (200 , "application/json" , buf );
262- Serial .println (len );
263- Serial .println (buf );
264- for (size_t i = 0 ; i < len ; i ++ ) {
265- Serial .print ((uint8_t )buf [i ], DEC );
266- Serial .print (" " );
267- }
268- Serial .println ();
269253 } else {
270254 request -> send (200 , "application/json" , "{}" );
271255 }
0 commit comments