How It Works

We can use a a get operation to find out if the alarm is active. This is done by using the DOFObject.get method to retrieve the current value of the provider's AlarmActive property.

The timeout parameter specifies how long to wait for a response from the provider before the operation fails. If you don't want it to time out, use DOF.TIMEOUT_NEVER.

When the get operation completes, the method returns a DOFResult. This is the value of the specified property. We can use the DOFResult.asBoolean to get a the boolean value of the property.