Skip to content

Commit 1f849c1

Browse files
committed
Merge branch 'master' of github.com:codetheweb/tuya-device
2 parents 3086018 + 9ad031a commit 1f849c1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docs/SETUP.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ Setup
1212

1313
![record toggle](images/record-toggle.png)
1414

15-
4. Setup Charles' [SSL certificate](https://www.charlesproxy.com/documentation/using-charles/ssl-certificates/) for your phone.
15+
4. Setup Charles' [SSL certificate](https://www.charlesproxy.com/documentation/using-charles/ssl-certificates/) for your phone. If the app throws network errors, you may have to take an additional step to fully trust the Charles SSL certificate:
16+
17+
`Settings > General > About > Certificate Trust Testings`
18+
1619
5. Proxy your phone's traffic through Charles (IP is the IP of your computer):
1720

1821
![proxy config](images/proxy-config.png)

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ TuyaDevice.prototype.set = function (options) {
238238
if (options.dps === undefined) {
239239
thisRequest.dps = {1: options.set};
240240
} else {
241-
thisRequest.dps[options.dps.toString()] = options.set;
241+
thisRequest.dps = {[options.dps.toString()]: options.set};
242242
}
243243

244244
debug('Payload: ');

0 commit comments

Comments
 (0)