C# Класс 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
Наследование: Controller.ControlPlugin
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Commands() публичный Метод

public Commands ( ) : Hashtable
Результат System.Collections.Hashtable

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

ExecuteControl() публичный Метод

Execute RelayCommand given in state object
public ExecuteControl ( object state ) : void
state object DictionaryEntry object to process on execution
Результат void

HandleWebRequest() публичный Метод

Event handler registered with the Web Server to process incomming web requests
public HandleWebRequest ( Request request, object response ) : void
request Webserver.Request
response object
Результат void

Relays() публичный Метод

public Relays ( object _config ) : System
_config object
Результат System