Skip to content

Commit

Permalink
fix: #580
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed Oct 29, 2024
1 parent 77abf00 commit b5944c6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ private Mono<DeviceOperator> doAutoRegister(DeviceRegisterMessage message) {
instance.setCreateTimeNow();
instance.setCreatorId(tps.getT4().getCreatorId());
instance.setOrgId(tps.getT4().getOrgId());

//网关ID
message.getHeader(DeviceConfigKey.parentGatewayId.getKey())
.map(String::valueOf)
.ifPresent(instance::setParentId);
//设备自状态管理
//网关注册设备子设备时,设置自状态管理。
//在检查子设备状态时,将会发送ChildDeviceMessage<DeviceStateCheckMessage>到网关
Expand Down

0 comments on commit b5944c6

Please sign in to comment.