C# Class HomeAutomation.Core.DeviceCommand

Represents a command that can be executed on devices. By convention Name represents the name of a method in the device. This should be accessible through reflection. Also by convention all methods accessible this way should only have string parameters.
显示文件 Open project: moszinet/HomeAutomation Class Usage Examples

Public Methods

Method Description
CreateFromString ( string commandMessage ) : DeviceCommand

Builds a device command based on the command message. Format: networkname,methodname,param1,param2,param3,...

Method Details

CreateFromString() public static method

Builds a device command based on the command message. Format: networkname,methodname,param1,param2,param3,...
public static CreateFromString ( string commandMessage ) : DeviceCommand
commandMessage string
return DeviceCommand