SubscribeConnectionLost

virtual PSubscription ISystem::SubscribeConnectionLost(ConnectionLostHandler handler) = 0

Subscribes a callback to be executed when the connection to a discovered top-controller (or one of its sub-controllers) is lost.

Parameters

handler – Function to be called when connection is lost.

Returns

PSubscription – An ISubscription for the callback.

Throws

CInvalidArgumentException – Empty callback handler specified.