This application translates HTTP GET requests into the proper RS232 commands to control a Sharp Aquos TV
Dependencies: EthernetInterface mbed-rtos mbed
Diff: AquosTV.h
- Revision:
- 0:427a14ebab60
- Child:
- 2:3637af74f7f0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AquosTV.h Tue Jul 29 23:01:55 2014 +0000 @@ -0,0 +1,35 @@ +#ifndef _AQUOSTV +#define _AQUOSTV +#include "mbed.h" +#include <string.h> +#include <stdio.h> + +#include "DebugPort.h" + + + +#define AQUOSBUF 128 + +class AquosTV { + private: + const static unsigned int BUF_SIZE = 256; + DebugPort *m_dbg; + + protected: + Serial* m_tv; + char httpcmd[128]; + char rs232cmd[128]; + + void init(); + + public: + AquosTV(DebugPort *dbg); + virtual ~AquosTV(); + + bool processCommand(const char* httpin); + const char* http() ; + const char* tvcmd() ; +}; + + +#endif \ No newline at end of file