global_set_option

Info Value
Package mvnc
Module mvncapi
Version 2.0
See also GlobalOption, global_get_option()

Overview

This function sets a global option value. The available options and possible values can be found in the GlobalOption enumeration.

Syntax

mvncapi.global_set_option(option, value)

Parameters

Parameter Type Description
option int A member of the GlobalOption enumeration that specifies which option value to set.
value varies The new value to which the option will be set.

The type to pass for this parameter depends on which option is being set. See the GlobalOption enumeration for the type that corresponds to each option.

Return

None

Raises

Exception with a Status.INVALID_PARAMETERS code if an invalid option is passed or Exception with a status code from Status if underlying function calls return a status other than Status.OK.

Notes

None.

Example

from mvnc import mvncapi

# Set the global logging level to debug (full verbosity)
mvncapi.global_set_option(mvncapi.GlobalOption.RW_LOG_LEVEL, mvncapi.LogLevel.DEBUG)