Skip to content

Good to know

Michiel TJampens edited this page Aug 13, 2021 · 3 revisions

Tips and tricks?

Data routing

1. Using a path as a stream

Possible reason for wanting to do this is testing a label (like generic) because a path doesn't use those.

<dcafs>
    <streams>
        <!-- The stream supplied via raw:localtest will be the data received from the path -->
        <stream id="localtest" type="local"> <!-- Use a local stream, local means 'inside dcafs' -->
            <eol>crlf</eol>
            <cmd when="open">path:test</cmd> <!-- Connect to the path when the stream is opened -->
        </stream>
    </streams>
    <datapaths>
        <!-- The path supplied via path:test -->
        <path id="test">
            <customsrc interval="500ms">15,25,36,hello,35.32</customsrc>
        </path>
    </datapaths>
</dcafs>
Clone this wiki locally