Skip to content

Commit b766439

Browse files
committed
Fix requests.json
1 parent 70759b4 commit b766439

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

Diff for: README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,11 @@ See the [setup instructions](docs/SETUP.md) for how to find the needed parameter
4040
## Docs
4141

4242
See the [docs](docs/API.md).
43+
**IMPORTANT**: Only one TCP connection can be in use with a device at once. If testing this, do not have the app on your phone open.
4344

4445
## TODO
4546

46-
1. Reuse a TCP connection between subsequent commands, instead of creating a new one every time.
47+
1. ~~Reuse a TCP connection between subsequent commands, instead of creating a new one every time.~~
4748
2. Figure out what the hex-encoded 'padding' is.
4849
3. Autodiscovery of devices?
4950

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tuyapi",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "An easy-to-use API for devices that use Tuya's cloud services (currently only supports smart plugs)",
55
"main": "index.js",
66
"scripts": {

Diff for: requests.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
22
"outlet": {
33
"status": {
4-
"prefix": "000055aa0000004c0000000a00000046",
4+
"prefix": "000055aa000000000000000a00000046",
55
"command": {"gwId": "", "devId": ""},
6-
"suffix": "0a7117970000aa55"
6+
"suffix": "000000000000aa55"
77
},
88
"on": {
9-
"prefix": "450000d3ca6d40004006ed7fc0a8007bc0a8006cc4bc1a0c1082022500001e2a5018ffff9cb00000000055aa0000004e000000070000009b",
9+
"prefix": "000055aa00000000000000070000009b",
1010
"command": {"devId": "", "dps": {"1": true}, "uid": "", "t": ""},
11-
"suffix": "5c806ffc0000aa55"
11+
"suffix": "000000000000aa55"
1212
},
1313
"off": {
14-
"prefix": "450000eb4c60400040066b75c0a8007bc0a8006cc4bc1a0c1082016200001d735018ffff9f850000000055aa0000004d00000007000000b3",
14+
"prefix": "000055aa0000000000000007000000b3",
1515
"command": {"devId": "", "dps": {"1": false}, "uid": "", "t": ""},
16-
"suffix": "8b3e795a0000aa55"
16+
"suffix": "000000000000aa55"
1717
}
1818
}
1919
}

0 commit comments

Comments
 (0)