![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Versão estável sem DMA e FFT. 128 amostras.
Dependencies: EthernetInterface NTPClient mbed-rtos mbed
Diff: Headers/TelnetServer.h
- Revision:
- 0:fac116e94d44
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Headers/TelnetServer.h Tue Jan 05 11:47:35 2016 +0000 @@ -0,0 +1,31 @@ +#include "mbed.h" +#include "rtos.h" + +#include "EthernetInterface.h" + +typedef int(*cmd_function)(TCPSocketConnection *conn,char**,int); + +struct telnet_cmd_handler { + char* command_name; + cmd_function pfn; +}; + + +class TelnetServer +{ + static const struct telnet_cmd_handler cmds[]; + +public: + static void TelnetServer_Thread(void const* arg); + static void TelnetSession(TCPSocketConnection *conn); + static void option_negotiator(TCPSocketConnection *conn,unsigned char opt_cmd,unsigned char opt_param); + static int HelpCommand(TCPSocketConnection *conn,char** argv,int argc); + static int ListParamCommand(TCPSocketConnection *conn,char** argv,int argc); + static int GetParamCommand(TCPSocketConnection *conn,char** argv,int argc); + static int SetParamCommand(TCPSocketConnection *conn,char** argv,int argc); + static int ResetCommand(TCPSocketConnection *conn,char** argv,int argc); + static int RemoveCommand(TCPSocketConnection *conn,char** argv,int argc); + static int VersionCommand(TCPSocketConnection *conn,char** argv,int argc); + static int UpdateCommand(TCPSocketConnection *conn,char** argv,int argc); + +};