Subscribe¶
-
ISubscription IEventResponse.Subscribe(EventResponseHandler handler)¶
Subscribes a callback to be executed when this response is triggered.
- Parameters
handler – Delegate to be invoked.
- Returns
ISubscription – An ISubscription for the callback.
- Throws
NullArgumentException– Null reference was passed.OutOfResourcesException– No resources available to subscribe callback.CommunicationErrorException– Protocol error.ConnectionLostException– Connection to controller lost.RebootedException– Controller has been rebooted since this object reference was retrieved, invalidating this reference.IncompatibleException– Incompatible firmware version loaded (only applicable if entity is a controller).