RPC mbed Server (basierend auf HTTP Protokoll) mit UI via Browser
Dependencies: EthernetInterface mbed-rpc mbed-rtos mbed
Fork of HTTP-Server by
Diff: RPCCommand.h
- Revision:
- 0:9e4bcb10b3e3
diff -r 000000000000 -r 9e4bcb10b3e3 RPCCommand.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RPCCommand.h Wed Jul 17 10:15:05 2013 +0000 @@ -0,0 +1,36 @@ +#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 +