Class NodeMCUWS281XDeviceDefinition
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
Implements
Inherited Members
Namespace: RGB.NET.Devices.WS281X.NodeMCU
Assembly: RGB.NET.Devices.WS281X.dll
Syntax
public sealed class NodeMCUWS281XDeviceDefinition : IWS281XDeviceDefinition
Constructors
| Edit this page View SourceNodeMCUWS281XDeviceDefinition(string, NodeMCUUpdateMode)
Initializes a new instance of the NodeMCUWS281XDeviceDefinition class.
Declaration
public NodeMCUWS281XDeviceDefinition(string hostname, NodeMCUUpdateMode updateMode = NodeMCUUpdateMode.Udp)
Parameters
Type | Name | Description |
---|---|---|
string | hostname | The hostname to connect to. |
NodeMCUUpdateMode | updateMode | The update mode of the device. |
Properties
| Edit this page View SourceHostname
Gets the hostname to connect to.
Declaration
public string Hostname { get; }
Property Value
Type | Description |
---|---|
string |
Name
Gets or sets the name used by this device. This allows to use {0} as a placeholder for a incrementing number if multiple devices are created.
Declaration
public string? Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Port
Gets or sets the port of the UDP connection.
Declaration
public int Port { get; set; }
Property Value
Type | Description |
---|---|
int |
UpdateMode
Gets or sets the update-mode of the device.
Declaration
public NodeMCUUpdateMode UpdateMode { get; set; }
Property Value
Type | Description |
---|---|
NodeMCUUpdateMode |
Methods
| Edit this page View SourceCreateDevices(IDeviceUpdateTrigger)
Gets the devices defined by this definition.
Declaration
public IEnumerable<IRGBDevice> CreateDevices(IDeviceUpdateTrigger updateTrigger)
Parameters
Type | Name | Description |
---|---|---|
IDeviceUpdateTrigger | updateTrigger |
Returns
Type | Description |
---|---|
IEnumerable<IRGBDevice> | The initialized devices defined by this definition. |