1
0
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:
Joel Bender 2016-09-01 10:14:35 -04:00
parent 2221ecbb4d
commit d2c038dfcd

View File

@ -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)