Versão estável sem DMA e FFT. 128 amostras.
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
Codes/TelnetCommands/telnet_reset.cpp@0:fac116e94d44, 2016-01-05 (annotated)
- Committer:
- rebonatto
- Date:
- Tue Jan 05 11:47:35 2016 +0000
- Revision:
- 0:fac116e94d44
Vers?o est?vel sem DMA e FFT. 128 amostras.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
rebonatto | 0:fac116e94d44 | 1 | #include "TelnetServer.h" |
rebonatto | 0:fac116e94d44 | 2 | #include "Pmed_reset.h" |
rebonatto | 0:fac116e94d44 | 3 | |
rebonatto | 0:fac116e94d44 | 4 | char *header_msg_reset = "Resetting..."; |
rebonatto | 0:fac116e94d44 | 5 | |
rebonatto | 0:fac116e94d44 | 6 | |
rebonatto | 0:fac116e94d44 | 7 | int TelnetServer::ResetCommand(TCPSocketConnection *conn,char** argv,int argc) |
rebonatto | 0:fac116e94d44 | 8 | { |
rebonatto | 0:fac116e94d44 | 9 | |
rebonatto | 0:fac116e94d44 | 10 | conn->send(header_msg_reset,strlen(header_msg_reset)); |
rebonatto | 0:fac116e94d44 | 11 | |
rebonatto | 0:fac116e94d44 | 12 | conn->close(); |
rebonatto | 0:fac116e94d44 | 13 | |
rebonatto | 0:fac116e94d44 | 14 | delete conn; |
rebonatto | 0:fac116e94d44 | 15 | |
rebonatto | 0:fac116e94d44 | 16 | Pmed_reset(PMEDLOG_RESETTELNET); |
rebonatto | 0:fac116e94d44 | 17 | |
rebonatto | 0:fac116e94d44 | 18 | return 0; |
rebonatto | 0:fac116e94d44 | 19 | } |