esphome ts:Esphome本机API接口的TypeScript客户端 源码
esphome-ts 这是与一起使用的客户端库。 使用范例 import { EspDevice , SwitchComponent } from 'esphome-ts/dist' ; import { filter , tap } from 'rxjs/operators' ; const device = new EspDevice ( 'my_esp.local' ) ; device . discovery$ . pipe ( filter ( ( value ) => value ) , tap ( ( ) => { const sw = device . components [ 'test_switch' ] as SwitchComponent ; sw . state$ . sub
文件列表
esphome-ts-master.zip
(预估有个65文件)
esphome-ts-master
.prettierignore
26B
.gitignore
361B
tsconfig.json
324B
README.md
1KB
CHANGELOG.md
388B
.github
workflows
node.js.yml
932B
release.yml
922B
暂无评论