Using the “SensorMonitor” project as a reference, I am trying to create plugin that will allow our custom hardware to send events to Milestone and the other way around (Milestone to hardware).
Implementing “GetKnownEventTypes” in a ItemManager allows the user to select our Item-type as a source of events. But how do I best create “output” items so that Milestone can trigger events on our hardware?
I believe that when you look at the sample the controller acts as much as an output as it does anything else, you even can power it off and on. With this in mind could you please have a renewed look at the sample?
If you have something different in mind please elaborate on the question.
Just an added comment: If you want to be able to trigger something external from an Event Server plugin you need to implement a MIP rule action. You can have a look at the Bat Action sample for inspiration.
You cannot define an output device in an Event Server plugin. That can only be done from a device driver - e.g. implemented using the new driver framework we are releasing in 2019 R3.