fixed device profile proto deserialization

This commit is contained in:
YevhenBondarenko 2024-05-30 18:17:23 +02:00
parent bc82e2084f
commit 13e00bfa7b

View File

@ -658,6 +658,8 @@ public class ProtoUtils {
} }
if (proto.hasDefaultRuleChainIdMSB() && proto.hasDefaultRuleChainIdLSB()) { if (proto.hasDefaultRuleChainIdMSB() && proto.hasDefaultRuleChainIdLSB()) {
deviceProfile.setDefaultRuleChainId(getEntityId(proto.getDefaultRuleChainIdMSB(), proto.getDefaultRuleChainIdLSB(), RuleChainId::new)); deviceProfile.setDefaultRuleChainId(getEntityId(proto.getDefaultRuleChainIdMSB(), proto.getDefaultRuleChainIdLSB(), RuleChainId::new));
}
if (proto.hasDefaultDashboardIdMSB() && proto.hasDefaultDashboardIdLSB()) {
deviceProfile.setDefaultDashboardId(getEntityId(proto.getDefaultDashboardIdMSB(), proto.getDefaultDashboardIdLSB(), DashboardId::new)); deviceProfile.setDefaultDashboardId(getEntityId(proto.getDefaultDashboardIdMSB(), proto.getDefaultDashboardIdLSB(), DashboardId::new));
} }
if (proto.hasDefaultQueueName()) { if (proto.hasDefaultQueueName()) {