Replies: 9 comments 1 reply
-
If I follow the exact pattern that the command shell uses this seems really messy |
Beta Was this translation helpful? Give feedback.
-
Most of the time you will be reading and writing standard objects (like Run your application again with a |
Beta Was this translation helpful? Give feedback.
-
Yea, I get that, and I don't know. Little comfort that this is the only bug like this reported and that I can't reproduce it. So go to the mattresses; turn on that debugging option and let me know what it says, and if that doesn't yield any clues, run Wireshark and post a hex dump (which reminds me it would be nice to have some kind of "drop box" for people to send me pcap files privately or obfuscate network addresses and such). |
Beta Was this translation helpful? Give feedback.
-
I have run it with debug and have a pcap as well. All are attached. |
Beta Was this translation helpful? Give feedback.
-
The successful times you are calling it with an
The unsuccessful ones you are calling it with a string:
The code doesn't assert that the parameter is actually an instance of an It would be better if it worked as you are using it (the principle of least surprise) and that goes for the
and adding some kind of |
Beta Was this translation helpful? Give feedback.
-
Thanks you for such prompt work on this problem. |
Beta Was this translation helpful? Give feedback.
-
works fine now. Should I also change the present-value to PropertyIdentifier('present-value')? |
Beta Was this translation helpful? Give feedback.
-
There is an issue here with a branch for this feature. This is a pretty significant refactoring, please test it when you get a chance. I'll make sure it doesn't break BAC0 before merging it. |
Beta Was this translation helpful? Give feedback.
-
Sorry, it took a few days to get back to this. I checked the branch and it works fine without the typecast as well as with it now. You like nice short branch names (my poor fish command string blew out.) :) |
Beta Was this translation helpful? Give feedback.
-
I am just starting out with bacpypes3, so sorry if this is well understood.
I started with discover-devices.py and modified it to do some different things to try to get a handle on how to work with the module. I looked at the module logic that is returning the message and am not sure why it isn't working. When I use the module shell, it works fine.
python3 -m bacpypes3 --address 172.18.1.29/24
so there is clearly something I am missing.
code block:
for i_am in i_ams:
if _debug:
_log.debug(" - i_am: %r", i_am)
output:
device,2002 @ 172.18.1.210
name: thermostat 2
model: 122C
-no object class-
device,2003 @ 172.18.1.211
name: thermostat 1
model: 122C
-no object class-
hope someone can point me in the right direction.
Beta Was this translation helpful? Give feedback.
All reactions