ported HTTP-Server with W5500 Ethernet Shield

Dependencies:   W5500Interface mbed-rpc mbed

Fork of HTTP-Server by F B

Committer:
embeddist
Date:
Tue Apr 28 13:54:18 2015 +0000
Revision:
11:ac3569846176
Parent:
0:9e4bcb10b3e3
ported HTTP-Server with W5500 Ethernet Shield

Who changed what in which revision?

UserRevisionLine numberNew contents of line
feb11 0:9e4bcb10b3e3 1 #ifndef RPCCOMMAND
feb11 0:9e4bcb10b3e3 2 #define RPCCOMMAND
feb11 0:9e4bcb10b3e3 3
feb11 0:9e4bcb10b3e3 4 #include <list>
feb11 0:9e4bcb10b3e3 5 #include "mbed_rpc.h"
feb11 0:9e4bcb10b3e3 6
feb11 0:9e4bcb10b3e3 7 enum RPC_COMMAND_TYPE { INVALID, CREATE, DELETE, FUNCTION_CALL };
feb11 0:9e4bcb10b3e3 8
feb11 0:9e4bcb10b3e3 9 struct rpc_arg
feb11 0:9e4bcb10b3e3 10 {
feb11 0:9e4bcb10b3e3 11 char *name;
feb11 0:9e4bcb10b3e3 12 char *val;
feb11 0:9e4bcb10b3e3 13 };
feb11 0:9e4bcb10b3e3 14
feb11 0:9e4bcb10b3e3 15 class RPCCommand
feb11 0:9e4bcb10b3e3 16 {
feb11 0:9e4bcb10b3e3 17 public :
feb11 0:9e4bcb10b3e3 18
feb11 0:9e4bcb10b3e3 19 RPCCommand();
feb11 0:9e4bcb10b3e3 20
feb11 0:9e4bcb10b3e3 21 bool decode(char *buffer);
feb11 0:9e4bcb10b3e3 22
feb11 0:9e4bcb10b3e3 23 char* get_cmd() const;
feb11 0:9e4bcb10b3e3 24 RPC_COMMAND_TYPE get_type() const;
feb11 0:9e4bcb10b3e3 25 char* get_obj_name() const;
feb11 0:9e4bcb10b3e3 26 char* get_func_name() const;
feb11 0:9e4bcb10b3e3 27
feb11 0:9e4bcb10b3e3 28 private :
feb11 0:9e4bcb10b3e3 29
feb11 0:9e4bcb10b3e3 30 char cmd[RPC_MAX_STRING];
feb11 0:9e4bcb10b3e3 31 char* obj_name;
feb11 0:9e4bcb10b3e3 32 char* func_name;
feb11 0:9e4bcb10b3e3 33 };
feb11 0:9e4bcb10b3e3 34
feb11 0:9e4bcb10b3e3 35 #endif
feb11 0:9e4bcb10b3e3 36