![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
protegemed, aquisição via A/D simples utilizando interrupção do timer
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
Fork of ptgm_semDMA by
Diff: Codes/TelnetCommands/telnet_listparam.cpp
- Revision:
- 0:fac116e94d44
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Codes/TelnetCommands/telnet_listparam.cpp Tue Jan 05 11:47:35 2016 +0000 @@ -0,0 +1,36 @@ +#include "TelnetServer.h" +#define NUMBERPARAM 10 + +char *msg_list_param[NUMBERPARAM] = { "Ipserver", + "Ipaddress", + "module", + "outlet[0..2]", + "gain[0..5]", + "offset[0..5]", + "limit[0..5]", + "outlet_number[0..5]", + "purpose[0..5]", + "EventLimit" }; + +char *header_msg_listparam = "This is a list of available parameters:\r\n\r\n"; + + +int TelnetServer::ListParamCommand(TCPSocketConnection *conn, char ** argv,int argc) +{ + printf("Entering list parameters command...\n"); + + conn->send(header_msg_listparam,strlen(header_msg_listparam)); + + int i; + for(i=0;i < NUMBERPARAM ;i++) + { + + Thread::wait(20); + conn->send(msg_list_param[i],strlen(msg_list_param[i])); + + //printf("Parameter = %s\n",msg_list_param[i]); + conn->send("\r\n",2); + } + + return 0; +} \ No newline at end of file