0

I am using BACnet4J for a BACnet device simulator. I get it to create objects and react to reads and writes to properties. I have also played with COVSubscriptions. Everything works fine. Now I want to use events when a state of a Binary Input changes. Is there no automatic way of triggering events? From how I understand the code I thought I am supposed to do the following:

  • set up a binary input object
  • set up a notification class object
  • set the notification class property for binary input to match the notification class object id

Now I was expecting BACnet4J to trigger events whenever the present value of the binary input changes, but it doesn't. I found a method i LocalDevice which looks quite suitable. It is called sendIntrinsicEvent(...), but there is no call to that method.

Do I have to call that method on my own, whenever the state changes?

4

1 に答える 1

0

私の知る限り、はい、自動通知はありません。すでに見つけたメソッド (sendIntrinsicEvent) を使用して、値の変更時にイベント通知を実装する必要がありました。

于 2014-08-19T14:30:43.513 に答える