This application translates HTTP GET requests into the proper RS232 commands to control a Sharp Aquos TV
Dependencies: EthernetInterface mbed-rtos mbed
AquosTV.h
- Committer:
- davisw00
- Date:
- 2014-07-29
- Revision:
- 0:427a14ebab60
- Child:
- 2:3637af74f7f0
File content as of revision 0:427a14ebab60:
#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