feat(protocol): 官方协议支持设备模块Topic#26
Open
zhou-hao wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更目的
为设备增加“模块”能力:模块归属于父设备,不作为子设备或独立物类型;支持模块编码、模块 Thing、模块级物模型、模块属性/事件存储查询,以及标准/官方协议模块 Topic。
设计边界
modules[moduleCode]对应模块物模型。ThingModuleMessage/DeviceModuleMessage。验证
已在 detached clean worktrees 中仅应用设备模块 patch 并执行 PR 包级门禁:
结果:
覆盖:core/supports、device-manager、things-component、timescaledb Testcontainers、标准协议、官方协议、manifest、patch apply、自检与 diff 边界审计。
关联 PR
该能力为多仓库联动发布,请按依赖顺序合并: