BAC0 icon indicating copy to clipboard operation
BAC0 copied to clipboard

InvalidTag: real application tag required

Open mohakbhalla7 opened this issue 1 year ago • 1 comments

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!

mohakbhalla7 avatar Sep 22 '22 11:09 mohakbhalla7

Is this controller leggit ? The datatype in the response is incorrect

ChristianTremblay avatar Sep 29 '22 01:09 ChristianTremblay