Common.UpdateState

event message olympe.messages.common.UpdateState.UpdateStateChanged(sourceVersion=None, targetVersion=None, status=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

common.UpdateState.UpdateStateChanged

Status of the latest software update

Parameters:

sourceVersionstring

Version before the update.

targetVersionstring

Target version of the latest update. This is the version after the update when status is SUCCESS or the version of the update that failed when status is one of the failure value.

status : olympe.enums.common.UpdateState.UpdateStateChanged_Status

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

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

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Triggered: at connection during the first boot after a firmware update.

enum olympe.enums.common.UpdateState.UpdateStateChanged_Status

Update status

SUCCESS:

Update completed successfully. (0)

FAILURE_BAD_FILE:

Failure, wrong or corrupted update file. (1)

FAILURE_BAT_LEVEL_TOO_LOW:

Failure, battery level was too low. (2)

FAILURE:

Generic Failure. (3)