没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
TuyAPI :cloud_with_rain: :electric_plug: 用于与使用云网络的设备进行通信的库。 这些设备的商标有许多不同的名称,但是如果您的设备可与TuyaSmart应用程序一起使用,或者您的设备上打开了端口6668,则该库可能会运行。 安装 npm install codetheweb/tuyapi 基本用法 有关如何查找所需参数的信息,请参阅。 这些示例应报告当前状态,将default属性设置为当前状态的相反,然后报告更改后的状态。 如果您的设备在索引1处没有布尔属性(即,它没有开/关属性),则需要对它们进行调整。 异步(基于事件,推荐) const TuyAPI = require ( 'tuyapi' ) ; const device = new TuyAPI ( { id : 'xxxxxxxxxxxxxxxxxxxx' , key : 'xxxxxxxxxxxxxxxx' } ) ; let stateHasChanged = false ; // Find device on network device . find ( )
资源推荐
资源详情
资源评论
收起资源包目录
tuyapi-master.zip (55个子文件)
tuyapi-master
.github
FUNDING.yml 646B
ISSUE_TEMPLATE
bug_report.md 870B
workflows
test.yml 787B
lint.yml 245B
documentation.yml 88B
lib
message-parser.js 8KB
config.js 190B
utils.js 296B
cipher.js 2KB
crc.js 4KB
CONTRIBUTING.md 3KB
LICENSE 1KB
test
find.js 3KB
stub.js 5KB
parser.js 6KB
cipher.js 2KB
arguments.js 704B
README.md 7KB
docs
index.html 59KB
images
wifi-config.png 57KB
proxy-toggle.png 65KB
device-data.png 352KB
record-toggle.png 24KB
proxy-config.png 39KB
SETUP.md 6KB
assets
split.js 30KB
site.js 4KB
bass.css 11KB
bass-addons.css 221B
anchor.js 15KB
github.css 2KB
fonts
OTF
SourceCodePro-Bold.otf 141KB
SourceCodePro-Regular.otf 137KB
WOFF
OTF
SourceCodePro-Bold.otf.woff 88KB
SourceCodePro-Regular.otf.woff 87KB
TTF
SourceCodePro-Bold.ttf.woff 87KB
SourceCodePro-Regular.ttf.woff 88KB
source-code-pro.css 938B
LICENSE.txt 5KB
WOFF2
OTF
SourceCodePro-Regular.otf.woff2 74KB
SourceCodePro-Bold.otf.woff2 75KB
TTF
SourceCodePro-Regular.ttf.woff2 63KB
SourceCodePro-Bold.ttf.woff2 64KB
TTF
SourceCodePro-Regular.ttf 193KB
SourceCodePro-Bold.ttf 192KB
EOT
SourceCodePro-Bold.eot 82KB
SourceCodePro-Regular.eot 82KB
split.css 585B
style.css 2KB
SETUP_DEPRECATED.md 5KB
renovate.json 76B
.gitignore 935B
index.js 20KB
package-lock.json 1.15MB
package.json 2KB
共 55 条
- 1
资源评论
火君
- 粉丝: 18
- 资源: 4608
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功