Send interval #514
-
Hey there! Thanks in advance, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
What services are you using to send the data? Are you "pushing" it out via Write-Property to another device, or is the other device relying on COV notifications via a subscription? If you are using something like this then the notification rate is going to be a combination of the ramp rate, sleep times, and the COV_Increment. |
Beta Was this translation helpful? Give feedback.
-
Sorry for my late reply, christmas hit hard this year. Might be a bit late, but also Happy New Year! To be honest, it's a while ago that I started this and it worked just fine, since I never had the need to update more often.
I hope I did not forget anything in this summary, the complete code contains too much unrelated stuff. So what I'm doing is more comparable to the "custom-server.py" sample, I guess. I guess I have to adjust something in the wrapper for BIPSimpleApplication? Sorry to bother you |
Beta Was this translation helpful? Give feedback.
-
Happy New Year! 🥳 There are problems with using threads, the "ownership" of an object belongs to the thread that created it, so when you create your AnalogValueObject in the main thread and update in some other one wires can get crossed and it's hard to track down. Rather than fixing this with the "legacy" BACpypes this is much simpler in BACpypes3. Start with the cov-server.py sample application and replace the |
Beta Was this translation helpful? Give feedback.
-
Yeah, I thought so. I tried the cov-server.py and saw the covIncrement is directly connected to the update rate whereas, even if I strip down my programm to the essentials ( without threads ) the update rate won't change with the covIncrement. I'm just gonna recreate it based on the cov-server.py Anyway, thank you for your kind effort and the great work you did there! |
Beta Was this translation helpful? Give feedback.
Happy New Year! 🥳
There are problems with using threads, the "ownership" of an object belongs to the thread that created it, so when you create your AnalogValueObject in the main thread and update in some other one wires can get crossed and it's hard to track down.
Rather than fixing this with the "legacy" BACpypes this is much simpler in BACpypes3. Start with the cov-server.py sample application and replace the
ramp()
function with one that reads the temperature sensor and updates the value.