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
Afficher le fichier Open project: h07r0d/Netduino-Aquarium-Controller

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Commands ( ) : Hashtable
Résultat System.Collections.Hashtable

Dispose() public méthode

public Dispose ( ) : void
Résultat void

ExecuteControl() public méthode

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

HandleWebRequest() public méthode

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

Relays() public méthode

public Relays ( object _config ) : System
_config object
Résultat System