From e9f60d85b912fca1a9d7d72af996b94ed631ddc7 Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Tue, 2 Jul 2024 20:45:47 -0300 Subject: [PATCH] examples/telnetd: Make it clear the goal of this telned Signed-of-by: Alan C. Assis --- 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 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