Info | Value |
---|---|
Package | mvnc |
Module | mvncapi |
Version | 2.0 |
See also | Device, DeviceOption, Device.get_option() |
This method sets an option value for the Device. The available options and possible values can be found in the DeviceOption enumeration.
device.set_option(option, value)
Parameter | Type | Description |
---|---|---|
option | int | A member of the DeviceOption enumeration that specifies which option value to set. |
value | varies | The new value to which the device option will be set. The type to pass for this parameter depends on which option is being set. See the DeviceOption enumeration for the type that corresponds to each option. |
None
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.
N/A