Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new code after add one more argument to function bac0 #1

Closed
mohamedeldrini opened this issue Aug 25, 2022 · 1 comment
Closed

new code after add one more argument to function bac0 #1

mohamedeldrini opened this issue Aug 25, 2022 · 1 comment

Comments

@mohamedeldrini
Copy link

Traceback (most recent call last):
File "d:\DOC\Devices\Fire Panels\Panels-NBE\bacnet-ip-master\read-data.py", line 25, in
main()
File "d:\DOC\Devices\Fire Panels\Panels-NBE\bacnet-ip-master\read-data.py", line 16, in main
value = bacnet.read("192.168.1.11:50794 "+id+" presentValue ") #gateway
File "C:\Users\AbdelrahmanGohar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\BAC0\core\io\Read.py", line 123, in read
self.build_rp_request(
File "C:\Users\AbdelrahmanGohar\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\BAC0\core\io\Read.py", line 426, in build_rp_request
addr, obj_type, obj_inst, prop_id = args[:4]
ValueError: not enough values to unpack (expected 4, got 3)

@mohamedeldrini
Copy link
Author

To solve that issue please update source code as following:

Value expected for arguments not 3
value = bacnet.read("192.168.1.11:50794 "+id+" presentValue ")

value = bacnet.read("192.168.1.11:50794 analogInput "+id+" presentValue ")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant