Commit b925149e7ae2cbf7a9c90ecd64e8db35f32b1792
Committed by
Andrew Shvayka
1 parent
d605a94d
added field notifyDevice for TbMsgAttributesNode in demo data
Showing
3 changed files
with
9 additions
and
3 deletions
... | ... | @@ -51,6 +51,9 @@ public class TbMsgAttributesNode implements TbNode { |
51 | 51 | @Override |
52 | 52 | public void init(TbContext ctx, TbNodeConfiguration configuration) throws TbNodeException { |
53 | 53 | this.config = TbNodeUtils.convert(configuration, TbMsgAttributesNodeConfiguration.class); |
54 | + if (config.getNotifyDevice() == null) { | |
55 | + config.setNotifyDevice(true); | |
56 | + } | |
54 | 57 | } |
55 | 58 | |
56 | 59 | @Override |
... | ... | @@ -68,7 +71,8 @@ public class TbMsgAttributesNode implements TbNode { |
68 | 71 | config.getScope(), |
69 | 72 | new ArrayList<>(attributes), |
70 | 73 | new TelemetryNodeCallback(ctx, msg), |
71 | - config.getNotifyDevice() || StringUtils.isEmpty(notifyDeviceStr) || Boolean.parseBoolean(notifyDeviceStr)); | |
74 | + config.getNotifyDevice() || StringUtils.isEmpty(notifyDeviceStr) || Boolean.parseBoolean(notifyDeviceStr) | |
75 | + ); | |
72 | 76 | } |
73 | 77 | |
74 | 78 | @Override | ... | ... |