Skip to content

Commit

Permalink
Merge branch 'master' of github.com:codetheweb/tuya-device
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Apr 14, 2018
2 parents 3086018 + 9ad031a commit 1f849c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ Setup

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

4. Setup Charles' [SSL certificate](https://www.charlesproxy.com/documentation/using-charles/ssl-certificates/) for your phone.
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:

`Settings > General > About > Certificate Trust Testings`

5. Proxy your phone's traffic through Charles (IP is the IP of your computer):

![proxy config](images/proxy-config.png)
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ TuyaDevice.prototype.set = function (options) {
if (options.dps === undefined) {
thisRequest.dps = {1: options.set};
} else {
thisRequest.dps[options.dps.toString()] = options.set;
thisRequest.dps = {[options.dps.toString()]: options.set};
}

debug('Payload: ');
Expand Down

0 comments on commit 1f849c1

Please sign in to comment.