Represents a Tuya device.
Parameters
optionsObject options for constructing a TuyaDeviceoptions.typestring type of device (optional, default'outlet')options.ipstring IP of deviceoptions.portnumber port of device (optional, default6668)options.idstring ID of deviceoptions.uidstring UID of deviceoptions.keystring encryption key of deviceoptions.versionnumber protocol version (optional, default3.1)
Gets the device's current status.
Parameters
callbackfunction (error, result)
Sets the device's status.
Parameters