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:
- 2:3637af74f7f0
- Parent:
- 0:427a14ebab60
--- a/AquosTV.h Tue Jul 29 23:10:14 2014 +0000 +++ b/AquosTV.h Sat Sep 06 23:47:21 2014 +0000 @@ -6,6 +6,19 @@ #include "DebugPort.h" +const char gblHelp[] = " \n\ +poweron Power on SharpAquos \n\ +poweroff Power off SharpAquos \n\ +volume## Set volume to two digit number \n\ +input# Set input to one digit number \n\ +selecttv Set input to tv \n\ +chanalog Set TV channel to analog 1-136 \n\ +chdigiair#### Set TV to digital air 1-9999 \n\ +chdigicable####.#### Set TV to digital cable with major.minor \n\ +chdigi2cable##### Set TV to digital cable with 0-63839999 \n\ +chup TV Channel Up \n\ +chdw TV Channel Down \n\ +"; #define AQUOSBUF 128 @@ -22,6 +35,9 @@ void init(); + int getNumber(char** input, const char eol='\0'); + bool sendcmd(const char* cmd); + public: AquosTV(DebugPort *dbg); virtual ~AquosTV();