programmatic_host_connection_status
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| programmatic_host_connection_status [2020/05/12 18:54] – wikiadmin | programmatic_host_connection_status [2021/04/13 21:32] (current) – wikiadmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | HostConnectionStatus | + | ====Programmatic TransSECS Host Connection Status==== |
| After building a GEM Host in TransSECS you can register to receive the current status of the connection: | After building a GEM Host in TransSECS you can register to receive the current status of the connection: | ||
| Line 12: | Line 12: | ||
| }); | }); | ||
| </ | </ | ||
| + | /** include the wiki page " | ||
| - | The possible connection states are: | + | {{page> |
| - | <code java> | + | **JavaScript Example for MIStudio/ |
| - | /** Possible connection states */ | + | |
| - | public static enum ConnectionStates { | + | |
| - | ENABLE_ALL_EVENTS_FAILED(-80), | + | |
| - | ENABLE_EVENTS_FAILED(-70), | + | |
| - | LINK_REPORTS_FAILED(-60), | + | |
| - | CREATE_REPORTS_FAILED(-50), | + | |
| - | ENABLE_ALARMS_FAILED(-40), | + | |
| - | ONLINE_FAILED(-30), | + | |
| - | COMMUNICATION_FAILED(-20), | + | |
| - | CONNECT_FAILED(-10), | + | |
| - | DISCONNECTED(-1), | + | |
| - | OPERATIONAL(0), | + | |
| - | CONNECTED(10); | + | |
| - | </ | + | |
| - | + | ||
| - | For normal operation, the status must be OPERATIONAL - 0 Any other state is an either an error (negative numbers) or transient (CONNECTED). The description of the states, with corrective action (if any) are: | + | |
| - | + | ||
| - | * | + | |
| - | * | + | |
| - | * | + | |
| - | * | + | |
| - | * | + | |
| - | * | + | |
| - | * | + | |
| - | * | + | |
| - | * | + | |
| - | * | + | |
| - | * | + | |
| - | --- | + | |
| - | + | ||
| - | JavaScript Example for MIStudio/ | + | |
| Trigger this script at startup. This script pushes data to two BroadcastServers (StatusListenerCommand and StatusListenerValue) whenever there is a connection status change. | Trigger this script at startup. This script pushes data to two BroadcastServers (StatusListenerCommand and StatusListenerValue) whenever there is a connection status change. | ||
programmatic_host_connection_status.1589324097.txt.gz · Last modified: by wikiadmin
