Show / Hide Table of Contents

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.

Inheritance
object
NodeMCUWS281XDeviceDefinition
Implements
IWS281XDeviceDefinition
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: RGB.NET.Devices.WS281X.NodeMCU
Assembly: RGB.NET.Devices.WS281X.dll
Syntax
public sealed class NodeMCUWS281XDeviceDefinition : IWS281XDeviceDefinition

Constructors

| Edit this page View Source

NodeMCUWS281XDeviceDefinition(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 Source

Hostname

Gets the hostname to connect to.

Declaration
public string Hostname { get; }
Property Value
Type Description
string
| Edit this page View Source

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
| Edit this page View Source

Port

Gets or sets the port of the UDP connection.

Declaration
public int Port { get; set; }
Property Value
Type Description
int
| Edit this page View Source

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 Source

CreateDevices(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.

Implements

IWS281XDeviceDefinition
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX