 | ZWManagerSetValue Method (ZWValueId, Boolean) |
Sets the state of a bool.
Namespace:
OpenZWave
Assembly:
OpenZWave (in OpenZWave.dll) Version: 255.255.255.255
Syntaxpublic bool SetValue(
ZWValueId id,
bool value
)
Public Function SetValue (
id As ZWValueId,
value As Boolean
) As Boolean
public:
virtual bool SetValue(
[InAttribute] ZWValueId^ id,
[InAttribute] bool value
) sealed
Parameters
- id
- Type: OpenZWaveZWValueId
The unique identifier of the bool value. - value
- Type: SystemBoolean
The new value of the bool.
Return Value
Type:
Booleantrue if the value was set. Returns false if the value is not a ZWValueID::ValueType_Bool. The type can be tested with a call to ZWValueID::GetType
Remarks
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