Versão sem FFT e aquisição por DMA. 256 amostras.

Dependencies:   EthernetInterface NTPClient mbed-rtos mbed

Codes/TelnetCommands/telnet_listparam.cpp

Committer:
rebonatto
Date:
2016-01-05
Revision:
0:e57bc370d339

File content as of revision 0:e57bc370d339:

#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;
}