Click or drag to resize

ZWManagerSetValue Method (ZWValueId, Single)

Sets the value of a decimal.

Namespace:  OpenZWave
Assembly:  OpenZWave (in OpenZWave.dll) Version: 255.255.255.255
Syntax
public bool SetValue(
	ZWValueId id,
	float value
)

Parameters

id
Type: OpenZWaveZWValueId
The unique identifier of the decimal value.
value
Type: SystemSingle
The new value of the decimal.

Return Value

Type: Boolean
true if the value was set. Returns false if the value is not a ZWValueID::ValueType_Decimal. The type can be tested with a call to ZWValueID::GetType
Remarks
It is usually better to handle decimal values using strings rather than floats, to avoid floating point accuracy issues. Due to the possibility of a device being asleep, the command is assumed to suceeed, and the value held by the node is updated directly. This will be reverted by a future status message from the device if the Z-Wave message actually failed to get through. Notification callbacks will be sent in both cases.
See Also