![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Versão sem FFT e aquisição por DMA. 256 amostras.
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
Codes/TelnetCommands/telnet_help.cpp@0:e57bc370d339, 2016-01-05 (annotated)
- Committer:
- rebonatto
- Date:
- Tue Jan 05 11:45:44 2016 +0000
- Revision:
- 0:e57bc370d339
Vers?o est?vel sem calculo de FFT. Aquisi??o por DMA. Usa 256 amostras.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rebonatto | 0:e57bc370d339 | 1 | |
rebonatto | 0:e57bc370d339 | 2 | #include "TelnetServer.h" |
rebonatto | 0:e57bc370d339 | 3 | |
rebonatto | 0:e57bc370d339 | 4 | |
rebonatto | 0:e57bc370d339 | 5 | char *header_msg_help = "This is a list of available commands:\r\n\r\n"; |
rebonatto | 0:e57bc370d339 | 6 | |
rebonatto | 0:e57bc370d339 | 7 | int TelnetServer::HelpCommand(TCPSocketConnection *conn, char ** argv,int argc) |
rebonatto | 0:e57bc370d339 | 8 | { |
rebonatto | 0:e57bc370d339 | 9 | printf("Entering help command...\n"); |
rebonatto | 0:e57bc370d339 | 10 | |
rebonatto | 0:e57bc370d339 | 11 | conn->send(header_msg_help,strlen(header_msg_help)); |
rebonatto | 0:e57bc370d339 | 12 | |
rebonatto | 0:e57bc370d339 | 13 | int i; |
rebonatto | 0:e57bc370d339 | 14 | for(i=0;(unsigned int)cmds[i].pfn != 0;i++) |
rebonatto | 0:e57bc370d339 | 15 | { |
rebonatto | 0:e57bc370d339 | 16 | |
rebonatto | 0:e57bc370d339 | 17 | Thread::wait(20); |
rebonatto | 0:e57bc370d339 | 18 | conn->send(cmds[i].command_name,strlen(cmds[i].command_name)); |
rebonatto | 0:e57bc370d339 | 19 | |
rebonatto | 0:e57bc370d339 | 20 | //printf("cmd=%s\n",cmds[i].command_name); |
rebonatto | 0:e57bc370d339 | 21 | conn->send("\r\n",2); |
rebonatto | 0:e57bc370d339 | 22 | } |
rebonatto | 0:e57bc370d339 | 23 | |
rebonatto | 0:e57bc370d339 | 24 | return 0; |
rebonatto | 0:e57bc370d339 | 25 | } |