C# Class Plugins.Relays

Control Plugin to manage the RelayShield http://www.seeedstudio.com/depot/relay-shield-p-693.html?cPath=132_134 Used to control lighting and ATO solenoid
Inheritance: Controller.ControlPlugin
ファイルを表示 Open project: h07r0d/Netduino-Aquarium-Controller

Public Methods

Method Description
Commands ( ) : Hashtable
Dispose ( ) : void
ExecuteControl ( object state ) : void

Execute RelayCommand given in state object

HandleWebRequest ( Request request, object response ) : void

Event handler registered with the Web Server to process incomming web requests

Relays ( object _config ) : System

Private Methods

Method Description
GetTimeSpan ( string _time ) : System.TimeSpan

Determine the timespan from 'now' when the given command should be run

ParseCommands ( ArrayList _commands ) : void

Parse JSON array of relay config and store for delayed execution

Method Details

Commands() public method

public Commands ( ) : Hashtable
return System.Collections.Hashtable

Dispose() public method

public Dispose ( ) : void
return void

ExecuteControl() public method

Execute RelayCommand given in state object
public ExecuteControl ( object state ) : void
state object DictionaryEntry object to process on execution
return void

HandleWebRequest() public method

Event handler registered with the Web Server to process incomming web requests
public HandleWebRequest ( Request request, object response ) : void
request Webserver.Request
response object
return void

Relays() public method

public Relays ( object _config ) : System
_config object
return System