Common.NetworkEvent#

event message olympe.messages.common.NetworkEvent.Disconnection(cause=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

common.NetworkEvent.Disconnection

Drone will disconnect. This event is mainly triggered when the user presses on the power button of the product. This event is a notification, you can’t retrieve it in the cache of the device controller.

Parameters:
  • cause (olympe.enums.common.NetworkEvent.Disconnection_Cause) –

  • _policy (olympe.arsdkng.expectations.ExpectPolicy) – specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

  • _float_tol (tuple) – specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Triggered mainly when the user presses the power button of the drone.

enum olympe.enums.common.NetworkEvent.Disconnection_Cause#

Cause of the disconnection of the product

off_button:

The button off has been pressed (0)

unknown:

Unknown generic cause (1)

reset_factory:

The reset factory procedure has been requested (2)