Comparing version 7.0.1 to 7.1.0
10
index.js
@@ -182,4 +182,6 @@ // Import packages | ||
* true to return entire list of properties from device | ||
* @param {Array.<Number>} [options.dps=[4,5,6,18,19,20]] | ||
* @param {Number} [options.dps=1] | ||
* DPS index to return | ||
* @param {Array.Number} [options.requestedDPS=[4,5,6,18,19,20]] | ||
* only set this if you know what you're doing | ||
* @example | ||
@@ -190,3 +192,3 @@ * // get first, default property from device | ||
* // get second property from device | ||
* tuya.refresh({dps: [4,5,9,18,19,20]}).then(status => console.log(status)) | ||
* tuya.refresh({dps: 2}).then(status => console.log(status)) | ||
* @example | ||
@@ -203,3 +205,3 @@ * // get all available data from device | ||
t: Math.round(new Date().getTime() / 1000).toString(), | ||
dpId: options.dps ? options.dps : this._dpRefreshIds, | ||
dpId: options.requestedDPS ? options.requestedDPS : this._dpRefreshIds, | ||
uid: this.device.id | ||
@@ -228,3 +230,3 @@ }; | ||
const setOptions = { | ||
dps: options.dps ? options.dps : this._dpRefreshIds, | ||
dps: options.requestedDPS ? options.requestedDPS : this._dpRefreshIds, | ||
set: null | ||
@@ -231,0 +233,0 @@ }; |
{ | ||
"name": "tuyapi", | ||
"version": "7.0.1", | ||
"version": "7.1.0", | ||
"description": "An easy-to-use API for devices that use Tuya's cloud services", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
51350
1162