feat: 初始化小米 IoT (MIoT) 智能家居 Go 库
- 实现 MIoT 客户端核心功能(MQTT 连接、设备管理、属性读写) - 支持云端 API 调用与局域网设备发现(mDNS) - 集成国际化(i18n)多语言支持 - 添加 MIoT 设备规约解析器(spec_parser) - 包含单元测试与使用示例
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# R2-08 — miot_client: 通知方法
|
||||
|
||||
## 缺失方法
|
||||
|
||||
```python
|
||||
__show_client_error_notify(title, message) — 显示客户端错误通知
|
||||
__show_devices_changed_notify() — 显示设备变更通知
|
||||
__show_central_state_changed_notify(connected: bool) — 显示网关连接状态
|
||||
```
|
||||
|
||||
## 目标文件
|
||||
|
||||
`D:\miot\go-miot\miot_client.go`
|
||||
|
||||
通过 `PersistentNotify` 回调字段实现通知。
|
||||
Reference in New Issue
Block a user