-
Notifications
You must be signed in to change notification settings - Fork 9
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
Low values not send via send_cov_notifications #24
Comments
Ok, now I have seen there is the possibility to overwrite COVIncrementCriteria
and even using GenericCriteria seems to work
But still, is there a way to send notifications even when a value didn't change, like just update all subscriptions? |
Inside the COVDetection class is a So you should be able to call something like |
I see. Thank you, really!! |
Hello there,
I just migrated my code from the old BACpypes to BACpypes3 and had some minor issues,
which are foremost my own fault / lack of knowledge. Maybe this one is one of those, too, but maybe not.
What I do to see if my code works is, I open YABE and see what values are sent.
So I noticed the values ( AnalogueValueObject ) I add to an app are registered in YABE and I can subscribe to them,
but they don't update regularly. Most do only once a minute ( which I assume is just YABE doing a roll call ).
So I tried the example from cov-server.py and it updates every second.
I then did some fiddling around and noticed the following:
When I add some bigger numbers to my values, so the difference to their previous value is bigger,
then they update every second as intended. But when the difference is small, then they don't.
I tried it with the code from cov-server.py and adjusted the ramp-function to barely change the values, with the same result, the notification is not triggered ( I added a print() into event.py to see if send_cov_notifications() is triggered, but it isn't ).
Is this supposed to work like that or is this an error? If it is supposed to work like this, is there a way to trigger the notifications manually? The thing is, I need notifications for all the values, even if the do not change.
This is the adjusted code I used to test ( based on cov-server.py, everything else besides the ramp() is the same ), I changed the ramp so the value is only changed by 0.1, as I noticed this behaviour with my temperature sensor.
Thank you in advance!
The text was updated successfully, but these errors were encountered: