tessel-web-blast-ir:使用 Tessel 发送和接收 IR

时间:2021-06-13 20:28:35
【文件属性】:
文件名称:tessel-web-blast-ir:使用 Tessel 发送和接收 IR
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-13 20:28:35
JavaScript 概述 WebBlastir 旨在为 IR 模块提供两种 IR 服务: 报告通过 websocket 收到的 IR 代码。 通过 HTTP 接收 IR 代码,然后通过传输它们。 在开始之前 如果您还没有 。 在本地运行应用程序 npm install NODE_ENV=local npm start 这将使用一个“模拟”IR 模块,它将每 5 秒发出一次数据事件。 用于验证 Web 和套接字服务器是否已启动且可访问(主要用于调试)。 将显示套接字连接的客户端 您还应该能够POST到 curl -X POST -H "Content-Type: application/json" -d '{ "signal": [0, 100, 255] }' http://localhost:8001/single-blast 同样,这是使用存根 IR 接口,因此我们实际上只是验证服务器是否已
【文件预览】:
tessel-web-blast-ir-master
----package.json(996B)
----readme.md(2KB)
----test()
--------mocha.opts(37B)
--------src()
----src()
--------web-server.js(1KB)
--------ir-mock.js(589B)
--------index.template.html(1KB)
--------connection-manager.js(493B)
--------ir-factory.js(571B)
--------socket-server.js(740B)
--------web-blast-ir.js(419B)
--------index-html.js(756B)
----.gitignore(18B)

网友评论