(self, basestation, trigger, callback, timeout=120)
return self.HandleEvents(basestation, callback, timeout)
Use this method to subscribe to the event stream and provide a callback that will be called for event event received.
        This function will allow you to potentially write a callback that can handle all of the events received from the event stream.
        NOTE: Use this function if you need to run some code after subscribing to the eventstream, but before your callback to handle the events runs.
Use this method to subscribe to the event stream and provide a callback that will be called for event event received.
        This function will allow you to potentially write a callback that can handle all of the events received from the event stream.
        NOTE: Use this function if you need to run some code after subscribing to the eventstream, but before your callback to handle the events runs.
Use this method to subscribe to the event stream and provide a callback that will be called for event event received . This function will allow you to potentially write a callback that can handle all of the events received from the event stream . NOTE : Use this function if you need to run some code after subscribing to the eventstream but before your callback to handle the events runs .
def TriggerAndHandleEvent(self, basestation, trigger, callback, timeout=120):
        """
        Use this method to subscribe to the event stream and provide a callback that will be called for event event received.
        This function will allow you to potentially write a callback that can handle all of the events received from the event stream.
        NOTE: Use this function if you need to run some code after subscribing to the eventstream, but before your callback to handle the events runs.
        """
        if not callable(trigger):
            raise Exception('The trigger(self, camera) should be a callable function.')
        if not callable(callback):
            raise Exception('The callback(self, event) should be a callable function.')

        self.Subscribe(basestation)
        trigger(self)

        # NOTE: Calling HandleEvents() calls Subscribe() again, which basically turns into a no-op. Hackie I know, but it cleans up the code a bit.
        return self.HandleEvents(basestation, callback, timeout)
def TriggerAndHandleEvent ( self , basestation , trigger , callback , timeout = 120 ) : if not callable ( trigger ) : raise Exception ( 'The trigger(self, camera) should be a callable function.' ) if not callable ( callback ) : raise Exception ( 'The callback(self, event) should be a callable function.' ) self . Subscribe ( basestation ) trigger ( self ) # NOTE: Calling HandleEvents() calls Subscribe() again, which basically turns into a no-op. Hackie I know, but it cleans up the code a bit. return self . HandleEvents ( basestation , callback , timeout )