Skip to content

StringSetting#

This is the class for all a setting of type string for a device configuration. This class inherits from Setting.


constructor StringSetting(id: str, caption: str, default_value: str)#

Initializes a new instance of the StringSetting class.

Parameters#

Name Description
id The unique identifier for the setting. Must be unique within the settings of a device.
caption The caption of the setting which is displayed in the Measmatic decive manager.
default_value The default value of the setting.

property default_value#

Gets or sets the default value of the setting.

Returns#

Type Description
str The default value of the setting.

property value#

Gets or sets the current value of the setting.

Returns#

Type Description
str The current value of the setting.