feat: 初始化小米 IoT (MIoT) 智能家居 Go 库

- 实现 MIoT 客户端核心功能(MQTT 连接、设备管理、属性读写)
- 支持云端 API 调用与局域网设备发现(mDNS)
- 集成国际化(i18n)多语言支持
- 添加 MIoT 设备规约解析器(spec_parser)
- 包含单元测试与使用示例
This commit is contained in:
2026-06-28 22:05:49 +08:00
parent ac442812b4
commit 3a44cb9e6a
118 changed files with 31630 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# R2-06 — miot_client: 配置属性
## 缺失结构体字段
Python `MIoTClient` 的属性:
| Python 属性 | 类型 | Go 字段建议 |
|------------|------|------------|
| `action_debug` | bool | `ActionDebug bool` |
| `hide_non_standard_entities` | bool | `HideNonStandardEntities bool` |
| `display_display_binary_text` | bool | `DisplayBinaryText bool` |
| `display_display_binary_bool` | bool | `DisplayBinaryBool bool` |
| `cover_dead_zone_width` | int | `CoverDeadZoneWidth int` |
| `display_devices_changed_notify` | []string | `DisplayDevicesChangedNotify []string` |
| `persistent_notify` | func | `PersistentNotify func(string, string, string)` |
## 目标文件
`D:\miot\go-miot\miot_client.go`
在 `MIoTClient` 结构体中添加对应字段。