Nick Ryder / IrcBot Featured
Embed: (wiki syntax)

« Back to documentation index

DigitalInHandler Class Reference

DigitalInHandler Class Reference

DigitalInHandler lets users read a DigitalIn using "READ <name>". More...

#include <IrcMessageHandlers.h>

Inherits MessageHandler.

Public Member Functions

 DigitalInHandler (char *name, PinName pin)
 Create a DigitalInHandler.
IrcMessage handle (IrcMessage)
 Reply "<name> IS ON/OFF".

Detailed Description

DigitalInHandler lets users read a DigitalIn using "READ <name>".

Definition at line 23 of file IrcMessageHandlers.h.


Constructor & Destructor Documentation

DigitalInHandler ( char *  name,
PinName  pin 
)

Create a DigitalInHandler.

Parameters:
nameName of input used in command on IRC
pinPin the input is connected to.

Definition at line 42 of file IrcMessageHandlers.cpp.


Member Function Documentation

IrcMessage handle ( IrcMessage  msg ) [virtual]

Reply "<name> IS ON/OFF".

Reimplemented from MessageHandler.

Definition at line 48 of file IrcMessageHandlers.cpp.