@@ -382,6 +382,21 @@ class sfeNLCommands
382
382
383
383
flxLog_I (" Device ID: %s" , flux.deviceId ());
384
384
385
+ return true ;
386
+ } // ---------------------------------------------------------------------
387
+ // /
388
+ // / @brief Toggle verbose output
389
+ // /
390
+ // / @param theApp Pointer to the DataLogger App
391
+ // / @retval bool indicates success (true) or failure (!true)
392
+ // /
393
+ bool toggleVerboseOutput (sfeIoTNodeLoRaWAN *theApp)
394
+ {
395
+
396
+ if (theApp)
397
+ theApp->set_verbose (!theApp->get_verbose ());
398
+ flxLog_I (" Verbose Output %s" , theApp->get_verbose () ? " Enabled" : " Disabled" );
399
+
385
400
return true ;
386
401
}
387
402
@@ -404,6 +419,7 @@ class sfeNLCommands
404
419
{" heap" , &sfeNLCommands::heapStatus},
405
420
{" systime" , &sfeNLCommands::outputSystemTime},
406
421
{" uptime" , &sfeNLCommands::outputUpTime},
422
+ {" verbose" , &sfeNLCommands::toggleVerboseOutput},
407
423
{" device-id" , &sfeNLCommands::printDeviceID},
408
424
{" version" , &sfeNLCommands::printVersion},
409
425
{" about" , &sfeNLCommands::aboutDevice},
0 commit comments