boolean ENO_SwitchMode (int $InstanceID, boolean $Status)
InstanceID | ID of the device to be switched |
Status | TRUE for On, FALSE for Off |
If the command succeeds, it returns TRUE, otherwise FALSE.
Switches the device with ID InstanceID to value Status
Since the EnOcean system is unidirectional, can not be determined whether the command was successful. Error messages are only sent when an internal system error occurred (for example, if the interface is not connected).
ENO_SwitchMode(12345, true); //Turn on device