BAC0
BAC0 copied to clipboard
InvalidTag: real application tag required
Hi @ChristianTremblay,
I am trying to read an analogValue
object but I am getting this error:
>>> bacnet.read('50007:40 analogValue 932 presentValue')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pi/.local/lib/python3.7/site-packages/BAC0/core/io/Read.py", line 167, in read
value = apdu.propertyValue.cast_out(datatype)
File "/home/pi/.local/lib/python3.7/site-packages/bacpypes/constructeddata.py", line 1346, in cast_out
helper = klass(self.tagList[0])
File "/home/pi/.local/lib/python3.7/site-packages/bacpypes/primitivedata.py", line 798, in __init__
self.decode(arg)
File "/home/pi/.local/lib/python3.7/site-packages/bacpypes/primitivedata.py", line 814, in decode
raise InvalidTag("real application tag required")
bacpypes.errors.InvalidTag: real application tag required
I have gone through the read() function documentation and the source code, but couldn't find any argument accepting tags; and neither do I understand how to use BACpypes
here to handle this error.
Any help is appreciated. Thanks!
Is this controller leggit ? The datatype in the response is incorrect