DLN_GPIO_EVENT_CHANGE Event Type

Events are generated when the level on the digital input line changes.

If the eventPeriod parameter is 0, a single event is generated, when the level on the line changes.

If a user defines the non-zero eventPeriod parameter, the device will send recurrent events every eventPeriod milliseconds. The eventCount parameter contains a number of events, sent after the previous level change. When the level on the digital input changes, the device sends an event immediately. It doesn't wait for an eventPeriod since the previous event to pass. The eventCount parameter is reset to 0. Further recurrent event counting will be started from this point.

If the isDebounceEnabled parameter is set, the changes on the line are registered only after the signal has been stable for a predefined period of time.