mirror of
https://github.com/JoelBender/bacpypes
synced 2025-09-28 22:15:23 +08:00
initializing the state text uses 'direct' changes to the property value so the appropriate constructed type needs to be provided
This commit is contained in:
parent
2221ecbb4d
commit
d2c038dfcd
|
@ -10,6 +10,8 @@ from bacpypes.consolelogging import ConfigArgumentParser
|
|||
|
||||
from bacpypes.core import run
|
||||
|
||||
from bacpypes.primitivedata import CharacterString
|
||||
from bacpypes.constructeddata import ArrayOf
|
||||
from bacpypes.object import MultiStateValueObject
|
||||
|
||||
from bacpypes.app import BIPSimpleApplication
|
||||
|
@ -55,7 +57,7 @@ def main():
|
|||
objectName='My Special Object',
|
||||
presentValue=1,
|
||||
numberOfStates=3,
|
||||
stateText=['red', 'green', 'blue'],
|
||||
stateText=ArrayOf(CharacterString)(['red', 'green', 'blue']),
|
||||
)
|
||||
_log.debug(" - msvo: %r", msvo)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user