Class WSSVersionHandler
Handles firmware version parsing and feature availability based on known supported versions.
Inheritance
Namespace: Wss.CoreModule
Assembly: WSS_Core_Interface.dll
Syntax
public class WSSVersionHandler
Constructors
WSSVersionHandler(string)
Initializes a new instance of the WSSVersionHandler class using a string version. Defaults to H03 if an unknown version string is provided.
Declaration
public WSSVersionHandler(string strVersion)
Parameters
| Type | Name | Description |
|---|---|---|
| string | strVersion | Firmware version string (e.g., "H03", "J03"). |
Methods
GetVersion()
Gets the current firmware version as a named enum.
Declaration
public WSSVersionHandler.SupportedVersions GetVersion()
Returns
| Type | Description |
|---|---|
| WSSVersionHandler.SupportedVersions | The current WSSVersionHandler.SupportedVersions enum value. |
IsFeatureAvailable(string)
Checks if the specified feature is supported by the current firmware version.
Declaration
public bool IsFeatureAvailable(string feature)
Parameters
| Type | Name | Description |
|---|---|---|
| string | feature | The name of the feature to check (e.g., "AmplitudeCheck"). |
Returns
| Type | Description |
|---|---|
| bool |
|
IsLEDSettingsAvailable()
Indicates whether LED settings are available in the current firmware version.
Declaration
public bool IsLEDSettingsAvailable()
Returns
| Type | Description |
|---|---|
| bool |
|
IsModuleQueryAvailable()
Indicates whether ModuleQuery (unit settings probe) is available in the current firmware version.
Declaration
public bool IsModuleQueryAvailable()
Returns
| Type | Description |
|---|---|
| bool |
|
ToString()
Returns the string representation of the current firmware version (e.g., "H03").
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | The string name of the current firmware version. |
Overrides
isVersionSupported(string)
Determines whether the specified firmware version string is supported by this application.
Declaration
public bool isVersionSupported(string strVersion)
Parameters
| Type | Name | Description |
|---|---|---|
| string | strVersion | Firmware version identifier to check (for example, |
Returns
| Type | Description |
|---|---|
| bool | true if the supplied version is recognized and supported; otherwise, false. |