Fixed Msg Type Filter configuration
This commit is contained in:
parent
9529d3e052
commit
a606bcfa66
@ -17,6 +17,7 @@ package org.thingsboard.rule.engine.filter;
|
||||
|
||||
import lombok.Data;
|
||||
import org.thingsboard.rule.engine.api.NodeConfiguration;
|
||||
import org.thingsboard.server.common.msg.session.SessionMsgType;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
@ -33,7 +34,10 @@ public class TbMsgTypeFilterNodeConfiguration implements NodeConfiguration<TbMsg
|
||||
@Override
|
||||
public TbMsgTypeFilterNodeConfiguration defaultConfiguration() {
|
||||
TbMsgTypeFilterNodeConfiguration configuration = new TbMsgTypeFilterNodeConfiguration();
|
||||
configuration.setMessageTypes(Arrays.asList("POST_ATTRIBUTES","POST_TELEMETRY","RPC_REQUEST"));
|
||||
configuration.setMessageTypes(Arrays.asList(
|
||||
SessionMsgType.POST_ATTRIBUTES_REQUEST.name(),
|
||||
SessionMsgType.POST_TELEMETRY_REQUEST.name(),
|
||||
SessionMsgType.TO_SERVER_RPC_REQUEST.name()));
|
||||
return configuration;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user