Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface mbed-rtos mbed
telnet_listparam.cpp
00001 #include "TelnetServer.h" 00002 #define NUMBERPARAM 3 00003 00004 char *msg_list_param[NUMBERPARAM] = { "bla", 00005 "bla2", 00006 "Bla23" }; 00007 00008 char *header_msg_listparam = "This is a list of available parameters:\r\n\r\n"; 00009 00010 00011 int TelnetServer::ListParamCommand(TCPSocketConnection *conn, char ** argv,int argc) 00012 { 00013 printf("Entering list parameters command...\n"); 00014 00015 conn->send(header_msg_listparam,strlen(header_msg_listparam)); 00016 00017 int i; 00018 for(i=0;i < NUMBERPARAM ;i++) 00019 { 00020 00021 Thread::wait(20); 00022 conn->send(msg_list_param[i],strlen(msg_list_param[i])); 00023 00024 //printf("Parameter = %s\n",msg_list_param[i]); 00025 conn->send("\r\n",2); 00026 } 00027 00028 return 0; 00029 }
Generated on Fri Jul 22 2022 19:25:55 by
