This application translates HTTP GET requests into the proper RS232 commands to control a Sharp Aquos TV
Dependencies: EthernetInterface mbed-rtos mbed
Diff: AquosHTTP.h
- Revision:
- 2:3637af74f7f0
- Parent:
- 0:427a14ebab60
--- a/AquosHTTP.h Tue Jul 29 23:10:14 2014 +0000 +++ b/AquosHTTP.h Sat Sep 06 23:47:21 2014 +0000 @@ -5,11 +5,13 @@ #include "rtos.h" #include <string.h> #include "DebugPort.h" +#include "AquosTV.h" class AquosHTTP { private: const static unsigned int BUF_SIZE = 256; DebugPort* m_dbg; + AquosTV* m_tv; protected: EthernetInterface m_eth; @@ -25,7 +27,7 @@ int setResponse(const char* msg); public: - AquosHTTP(DebugPort* dbg); + AquosHTTP(DebugPort* dbg, AquosTV* tv); ~AquosHTTP(); AquosHTTP& init(const char *ipaddr, const char* netmask, const char* gateway); @@ -35,6 +37,8 @@ AquosHTTP& returnSuccess(); AquosHTTP& returnFailure(); + + AquosHTTP& returnHelp(); };