@@ -422,6 +422,41 @@ class sfeDLCommands
422422
423423 return true ;
424424 }
425+
426+ // ---------------------------------------------------------------------
427+ // /
428+ // / @brief output the firmware version
429+ // /
430+ // / @param dlApp Pointer to the DataLogger App
431+ // / @retval bool indicates success (true) or failure (!true)
432+ // /
433+ bool printVersion (sfeDataLogger *dlApp)
434+ {
435+
436+ char szBuffer[128 ];
437+ flux.versionString (szBuffer, sizeof (szBuffer), true );
438+
439+ flxLog_I (" %s %s" , flux.name (), flux.description ());
440+ flxLog_I (" Version: %s\n\r " , szBuffer);
441+
442+ return true ;
443+ }
444+
445+ // ---------------------------------------------------------------------
446+ // /
447+ // / @brief output the device ID
448+ // /
449+ // / @param dlApp Pointer to the DataLogger App
450+ // / @retval bool indicates success (true) or failure (!true)
451+ // /
452+ bool printDeviceID (sfeDataLogger *dlApp)
453+ {
454+
455+ flxLog_I (" Device ID: %s" , flux.deviceId ());
456+
457+ return true ;
458+ }
459+
425460 // ---------------------------------------------------------------------
426461 // our command map - command name to callback method
427462 commandMap_t _commandMap = {
@@ -446,6 +481,8 @@ class sfeDLCommands
446481 {" verbose-output" , &sfeDLCommands::logLevelVerbose},
447482 {" systime" , &sfeDLCommands::outputSystemTime},
448483 {" uptime" , &sfeDLCommands::outputUpTime},
484+ {" device-id" , &sfeDLCommands::printDeviceID},
485+ {" version" , &sfeDLCommands::printVersion},
449486 {" about" , &sfeDLCommands::aboutDevice},
450487 {" help" , &sfeDLCommands::helpDevice},
451488 };
0 commit comments