C# Class HomeAutomation.DeviceNetwork.XBee.XBeeDeviceNetwork

Defines the network that is powered by XBee devices.
Inheritance: IDeviceNetwork, IScheduledTask
Exibir arquivo Open project: moszinet/HomeAutomation Class Usage Examples

Public Methods

Method Description
ExecuteCommand ( DeviceCommand command ) : void

Sends a command to the XBee network.

GetUpdatedDiagnostics ( ) : object
Initialize ( DeviceNetworkHost deviceNetworkHost ) : void
TimeElapsed ( ) : void
XBeeDeviceNetwork ( IXBeeSerialPort serialPort ) : System

Private Methods

Method Description
AnnounceDeviceState ( DeviceState deviceState ) : void

A new device state is ready to be published, announce it

XbeeService_MessageReceived ( object sender, IXBeeFrame e ) : void

Method Details

ExecuteCommand() public method

Sends a command to the XBee network.
public ExecuteCommand ( DeviceCommand command ) : void
command HomeAutomation.Core.DeviceCommand
return void

GetUpdatedDiagnostics() public method

public GetUpdatedDiagnostics ( ) : object
return object

Initialize() public method

public Initialize ( DeviceNetworkHost deviceNetworkHost ) : void
deviceNetworkHost HomeAutomation.Core.DeviceNetwork.DeviceNetworkHost
return void

TimeElapsed() public method

public TimeElapsed ( ) : void
return void

XBeeDeviceNetwork() public method

public XBeeDeviceNetwork ( IXBeeSerialPort serialPort ) : System
serialPort IXBeeSerialPort
return System