This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new e9f60d85b examples/telnetd: Make it clear the goal of this telned
e9f60d85b is described below

commit e9f60d85b912fca1a9d7d72af996b94ed631ddc7
Author: Alan Carvalho de Assis <[email protected]>
AuthorDate: Tue Jul 2 20:45:47 2024 -0300

    examples/telnetd: Make it clear the goal of this telned
    
    Signed-of-by: Alan C. Assis <[email protected]>
---
 examples/telnetd/telnetd.c |  5 +++--
 examples/telnetd/telnetd.h | 14 +++++++++-----
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/examples/telnetd/telnetd.c b/examples/telnetd/telnetd.c
index 971c4cb7e..72a21a270 100644
--- a/examples/telnetd/telnetd.c
+++ b/examples/telnetd/telnetd.c
@@ -159,8 +159,9 @@ int telnetd_session(int argc, char *argv[])
 {
   char line[128];
 
-  printf("uIP command shell -- NuttX style\n");
-  printf("Type '?' and return for help\n");
+  printf("Device Configuration over Telnet\n");
+  printf("You can add functions to setup your device\n");
+  printf("Type '?' and press <enter> for help\n");
 
   for (; ; )
     {
diff --git a/examples/telnetd/telnetd.h b/examples/telnetd/telnetd.h
index fb5fdcd64..141ba3c5e 100644
--- a/examples/telnetd/telnetd.h
+++ b/examples/telnetd/telnetd.h
@@ -24,7 +24,9 @@
 /****************************************************************************
  * Pre-processor Definitions
  ****************************************************************************/
+
 /* Configuration ************************************************************/
+
 /* CONFIG_EXAMPLES_TELNETD_DAEMONPRIO - Priority of the Telnet daemon.
  *   Default: SCHED_PRIORITY_DEFAULT
  * CONFIG_EXAMPLES_TELNETD_DAEMONSTACKSIZE - Stack size allocated for the
@@ -35,10 +37,12 @@
  *   Telnet client. Default: 2048
  * CONFIG_EXAMPLES_TELNETD_NOMAC - If the hardware has no MAC address of its
  *   own, define this =y to provide a bogus address for testing.
- * CONFIG_EXAMPLES_TELNETD_IPADDR - The target IP address.  Default 10.0.0.2
- * CONFIG_EXAMPLES_TELNETD_DRIPADDR - The default router address. Default
- *   10.0.0.1
- * CONFIG_EXAMPLES_TELNETD_NETMASK - The network mask.  Default: 255.255.255.0
+ * CONFIG_EXAMPLES_TELNETD_IPADDR - The target IP address.
+ *   Default 10.0.0.2
+ * CONFIG_EXAMPLES_TELNETD_DRIPADDR - The default router address.
+ *   Default 10.0.0.1
+ * CONFIG_EXAMPLES_TELNETD_NETMASK - The network mask.
+ *   Default: 255.255.255.0
  */
 
 #ifndef CONFIG_EXAMPLES_TELNETD_DAEMONPRIO
@@ -69,7 +73,7 @@
 
 /* Other definitions ********************************************************/
 
-#define SHELL_PROMPT "uIP 1.0> "
+#define SHELL_PROMPT "cfg> "
 
 /****************************************************************************
  * Public Function Prototypes

Reply via email to