Edge Data Routing (EventDefinition.xml)
[Edge Main Folder]/configs/configurationsC:/ProgramData/Senseforce/Luna Data/[YourServiceName]/configurationsSample configuration
<?xml version="1.0" encoding="utf-8" ?>
<MappingConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://senseforce.io/ Schemas/mappings.xsd" >
<!-- The list of MQTT mappings below define the data routing and data mapping (renaming of variables)-->
<Mappings>
<Mapping>
<!-- Define for which input plugin this mapping should be applied -->
<!-- In your Input plugins "DataMappings.xml" a field "IngressKey" can be found. Match the Input plugins key with this key. -->
<IngressKey>OPCUA</IngressKey>
<!-- Define, where this message should be directed to. You can also direct it to multiple output plugins -->
<TargetPlugins>
<TargetPlugin>Mqtt_senseforce</TargetPlugin>
</TargetPlugins>
<!-- Here you can define all message settings -->
<Event>
<Type>MDE10</Type> <!-- This is the name of this event. It has to match witch the event schema defined in Rocket. Otherwise the message will be categorised as invalid. -->
<Timestamp>$(Timestamp)</Timestamp> <!-- The timestamp which is added to the message (if you use $(Timestamp) the timestamp provided by the plugin will be used) -->
<Id>$(GUID)</Id> <!-- Unique message ID -->
<!-- Optionally you can override the Topic of your MQTT-Plugin by setting a topic-identifier as shown below.
If no Topic is defined, the default one from MqttSettings.xml is used -->
<!-- <Topic>tenant/$(MachineNumber)</Topic> -->
<!-- Place all your data information here. name="XXXX": XXXX must be defined in Senseforce Cloud (Event Schema Attribute Key); -->
<!-- $(YYYY): YYYY are internal Edge variables which are directed from Input plugins. If you define a Variable Name in your Input plugins, these names must match with YYYY-->
<Datas>
<!--isMetaData: If set to true, messages which only contain isMetaData-objects are not transmitted-->
<Data name="Id" isMetaData="true">$(Id)</Data>
<Data name="SawArea">$(SawArea)</Data>
<Data name="CutLength">$(cut)</Data>
<!-- you can enter text before or after your variable, as demonstrated below -->
<Data name="Material">my_$(Material)_in</Data>
<!-- Wildcard notation for adding "any datapoint". Please use with caution-->
<!-- <Data name="$(*)">$(*)</Data> -->
</Datas>
</Event>
</Mapping>
</Mappings>
</MappingConfig>Settings in detail
Last updated