-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Cant figure out how to trigger event notification #9
Comments
Thanks @cemremengu. So did setting event enrollment work? If so you should start receiving events from your device. Best way to debug is to use Wireshark with bacnet filter. This way you will see if you are sending the enrollment, if it's being set and if you receive any events. You can also post your code here or PM me and I will take a look. |
0Great, it was the simulator not producing event I think. It works on a real controller. Is there any way to get the For |
@cemremengu, I took a look at the code and decoding of some notification data is missing, take a look here: https://github.com/ela-compil/BACnet/blob/master/Serialize/Services.cs#L870 Lower in that part of code you can see that encoding of the values is implemented so if you send, let's say notification of tyoe |
Thanks for the suggestions! I will probably go for a PR :) The problem with sending a read request is that if the event is initiated by an |
PR is always welcome :) In event data you have two properties: public struct BacnetEventNotificationData
{
public BacnetObjectId initiatingObjectIdentifier;
public BacnetObjectId eventObjectIdentifier;
... Is neither of these your monitored object id? If not, then you are right, you have to decode the missing part... |
I tried everything (including setting an event enrollment with a notification class) but cannot figure out how to trigger event notification
bacnet_client.OnEventNotify += new BacnetClient.EventNotificationCallbackHandler(handler_OnEventNotify);
Is this the right way to use it? Any help is greatly appreciated and thanks for this great library!
The text was updated successfully, but these errors were encountered: