The IrcBot class can connect to a channel on an IRC network. Users on the same network can send messages to the bot that are parsed by message handlers. The included handlers read digital/analog inputs and write digital outputs or echo messages back to the command sender/channel. Users can write their own message handlers inheriting from the MessageHandler class to perform different actions.

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.