ConnectStatus property
- Last UpdatedJul 19, 2024
- 1 minute read
The ConnectStatus property is a read-only string property that gets the status of the connection to the Alarm Database.
Syntax
result = AlarmClient.ConnectStatus;
Return Value
Returns the status of the connection to the alarm database. Can be "Connected," "Not connected," or "In progress."
Example
alive = AlarmClient1.ConnectStatus;
if alive == "Connected" then
LogMessage("The Alarm Control is currently connected to the Alarm Database");
else
LogMessage("The Alarm Control is either currently connecting to the Alarm Database or not connected.");
endif;