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
RPCCommand.h@47:d92d2c5b8073, 2016-08-19 (annotated)
- Committer:
- olympux
- Date:
- Fri Aug 19 20:17:00 2016 +0000
- Revision:
- 47:d92d2c5b8073
- Parent:
- 40:c966abbe2d62
forked to create a new repo for webserver on F103+W5500. No other functions
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
olympux | 40:c966abbe2d62 | 1 | #ifndef RPCCOMMAND |
olympux | 40:c966abbe2d62 | 2 | #define RPCCOMMAND |
olympux | 40:c966abbe2d62 | 3 | |
olympux | 40:c966abbe2d62 | 4 | #include <list> |
olympux | 40:c966abbe2d62 | 5 | #include "mbed_rpc.h" |
olympux | 40:c966abbe2d62 | 6 | |
olympux | 40:c966abbe2d62 | 7 | enum RPC_COMMAND_TYPE { INVALID, CREATE, DELETE, FUNCTION_CALL }; |
olympux | 40:c966abbe2d62 | 8 | |
olympux | 40:c966abbe2d62 | 9 | struct rpc_arg |
olympux | 40:c966abbe2d62 | 10 | { |
olympux | 40:c966abbe2d62 | 11 | char *name; |
olympux | 40:c966abbe2d62 | 12 | char *val; |
olympux | 40:c966abbe2d62 | 13 | }; |
olympux | 40:c966abbe2d62 | 14 | |
olympux | 40:c966abbe2d62 | 15 | class RPCCommand |
olympux | 40:c966abbe2d62 | 16 | { |
olympux | 40:c966abbe2d62 | 17 | public : |
olympux | 40:c966abbe2d62 | 18 | |
olympux | 40:c966abbe2d62 | 19 | RPCCommand(); |
olympux | 40:c966abbe2d62 | 20 | |
olympux | 40:c966abbe2d62 | 21 | bool decode(char *buffer); |
olympux | 40:c966abbe2d62 | 22 | |
olympux | 40:c966abbe2d62 | 23 | char* get_cmd() const; |
olympux | 40:c966abbe2d62 | 24 | RPC_COMMAND_TYPE get_type() const; |
olympux | 40:c966abbe2d62 | 25 | char* get_obj_name() const; |
olympux | 40:c966abbe2d62 | 26 | char* get_func_name() const; |
olympux | 40:c966abbe2d62 | 27 | |
olympux | 40:c966abbe2d62 | 28 | private : |
olympux | 40:c966abbe2d62 | 29 | |
olympux | 40:c966abbe2d62 | 30 | char cmd[RPC_MAX_STRING]; |
olympux | 40:c966abbe2d62 | 31 | char* obj_name; |
olympux | 40:c966abbe2d62 | 32 | char* func_name; |
olympux | 40:c966abbe2d62 | 33 | }; |
olympux | 40:c966abbe2d62 | 34 | |
olympux | 40:c966abbe2d62 | 35 | #endif |
olympux | 40:c966abbe2d62 | 36 |