examples/telnetd: Make it clear the goal of this telned

Signed-of-by: Alan C. Assis <acassis@gmail.com>
This commit is contained in:
Alan Carvalho de Assis 2024-07-02 20:45:47 -03:00 committed by Xiang Xiao
parent cbcf9ec168
commit e9f60d85b9
2 changed files with 12 additions and 7 deletions

View File

@ -159,8 +159,9 @@ int telnetd_session(int argc, char *argv[])
{ {
char line[128]; char line[128];
printf("uIP command shell -- NuttX style\n"); printf("Device Configuration over Telnet\n");
printf("Type '?' and return for help\n"); printf("You can add functions to setup your device\n");
printf("Type '?' and press <enter> for help\n");
for (; ; ) for (; ; )
{ {

View File

@ -24,7 +24,9 @@
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
/* Configuration ************************************************************/ /* Configuration ************************************************************/
/* CONFIG_EXAMPLES_TELNETD_DAEMONPRIO - Priority of the Telnet daemon. /* CONFIG_EXAMPLES_TELNETD_DAEMONPRIO - Priority of the Telnet daemon.
* Default: SCHED_PRIORITY_DEFAULT * Default: SCHED_PRIORITY_DEFAULT
* CONFIG_EXAMPLES_TELNETD_DAEMONSTACKSIZE - Stack size allocated for the * CONFIG_EXAMPLES_TELNETD_DAEMONSTACKSIZE - Stack size allocated for the
@ -35,10 +37,12 @@
* Telnet client. Default: 2048 * Telnet client. Default: 2048
* CONFIG_EXAMPLES_TELNETD_NOMAC - If the hardware has no MAC address of its * CONFIG_EXAMPLES_TELNETD_NOMAC - If the hardware has no MAC address of its
* own, define this =y to provide a bogus address for testing. * 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_IPADDR - The target IP address.
* CONFIG_EXAMPLES_TELNETD_DRIPADDR - The default router address. Default * Default 10.0.0.2
* 10.0.0.1 * CONFIG_EXAMPLES_TELNETD_DRIPADDR - The default router address.
* CONFIG_EXAMPLES_TELNETD_NETMASK - The network mask. Default: 255.255.255.0 * Default 10.0.0.1
* CONFIG_EXAMPLES_TELNETD_NETMASK - The network mask.
* Default: 255.255.255.0
*/ */
#ifndef CONFIG_EXAMPLES_TELNETD_DAEMONPRIO #ifndef CONFIG_EXAMPLES_TELNETD_DAEMONPRIO
@ -69,7 +73,7 @@
/* Other definitions ********************************************************/ /* Other definitions ********************************************************/
#define SHELL_PROMPT "uIP 1.0> " #define SHELL_PROMPT "cfg> "
/**************************************************************************** /****************************************************************************
* Public Function Prototypes * Public Function Prototypes