 | ZWManagerSetValue Method (ZWValueId, Single) |
Sets the value of a decimal.
Namespace:
OpenZWave
Assembly:
OpenZWave (in OpenZWave.dll) Version: 255.255.255.255
Syntaxpublic bool SetValue(
ZWValueId id,
float value
)
Public Function SetValue (
id As ZWValueId,
value As Single
) As Boolean
public:
virtual bool SetValue(
[InAttribute] ZWValueId^ id,
[InAttribute] float value
) sealed
Parameters
- id
- Type: OpenZWaveZWValueId
The unique identifier of the decimal value. - value
- Type: SystemSingle
The new value of the decimal.
Return Value
Type:
Booleantrue 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