From 540151c4a5462cbc44ba18f2e0eb25489f266033 Mon Sep 17 00:00:00 2001 From: timyhac Date: Sun, 24 May 2026 19:21:49 +1000 Subject: [PATCH] Adds new connection status events --- src/libplctag.NativeImport/EVENT.cs | 32 ++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/src/libplctag.NativeImport/EVENT.cs b/src/libplctag.NativeImport/EVENT.cs index 232c411b..703d693f 100644 --- a/src/libplctag.NativeImport/EVENT.cs +++ b/src/libplctag.NativeImport/EVENT.cs @@ -54,6 +54,36 @@ public enum EVENT /// The final status of the creation is passed to the callback as well. /// This is not as well supported in some cases, so only depend on this for normal tags and not tags like @tags. /// - PLCTAG_EVENT_CREATED = 7 + PLCTAG_EVENT_CREATED = 7, + + /// + /// The underlying connection is established and ready for operations. + /// + PLCTAG_EVENT_CONN_STATUS_UP = 100, + + /// + /// The connection is not established. + /// + PLCTAG_EVENT_CONN_STATUS_DOWN = 101, + + /// + /// The connection is in the process of disconnecting. + /// + PLCTAG_EVENT_CONN_STATUS_DISCONNECTING = 102, + + /// + /// The connection is in the process of being established. + /// + PLCTAG_EVENT_CONN_STATUS_CONNECTING = 103, + + /// + /// Waiting to reconnect after an idle disconnect. + /// + PLCTAG_EVENT_CONN_STATUS_IDLE_WAIT = 104, + + /// + /// Waiting to reconnect after an error. + /// + PLCTAG_EVENT_CONN_STATUS_ERR_WAIT = 105, } }