Webserver only w/o any other functions, single thread. Running on STM32F013+W5500

Dependencies:   NTPClient W5500Interface Watchdog device_configuration eeprom_flash mbed-rpc-nucleo mbed-rtos mbed

Fork of F103-Serial-to-Ethernet by Chau Vo

RPCCommand.h

Committer:
olympux
Date:
2016-08-19
Revision:
47:d92d2c5b8073
Parent:
40:c966abbe2d62

File content as of revision 47:d92d2c5b8073:

#ifndef RPCCOMMAND
#define RPCCOMMAND

#include <list>
#include "mbed_rpc.h"

enum RPC_COMMAND_TYPE { INVALID, CREATE, DELETE, FUNCTION_CALL };

struct rpc_arg
{
    char *name;
    char *val;
};

class RPCCommand
{
    public :
    
        RPCCommand();

        bool decode(char *buffer);

        char* get_cmd() const;
        RPC_COMMAND_TYPE get_type() const;
        char* get_obj_name() const;
        char* get_func_name() const;

    private :
        
        char cmd[RPC_MAX_STRING];
        char* obj_name;
        char* func_name;
};

#endif