67 void sendir(Stream &stream,
char *buf)
const;
static const int invalidPin
void initLed(int pin) const
static const milliseconds_t blinkDelay
void getversion(Stream &stream) const
Implements the getversion command.
static const uint16_t tcpPort
The GlobalCache standard TCP command port.
void turnOnOffLed(int pin, milliseconds_t delay) const
Turns on the pin as the first argument, waits delay milli seconds, then turns off the pin...
void turnOnLed(int pin) const
static const size_t bufSize
Max length on input line.
This class emulates the IR sending of a GlobalCache device.
static const char eolChar
GlobalCache uses CR as line terminator.
GlobalCovfefe(IrSender *irSender, int commandLed=invalidPin, int transmitLed=invalidPin)
Main constructor.
void getdevices(Stream &stream) const
Implements the getdevices command.
virtual void processCommand(Stream &stream, char *buf) const
Processes one command from the supplied Stream argument.
void turnOffLed(int pin) const
virtual void blink(unsigned int count=blinkCount, milliseconds_t delay=blinkDelay) const
Implements the blink command (found in GC-100)
void sendir(Stream &stream, char *buf) const
Implements the sendir command.
static const char * version
Version of the present program.
void readProcessCommand(Stream &stream) const
Reads and processes one command from the supplied Stream argument.
static const unsigned int blinkCount