Mapping the Blocks

The mappings section is used to connect the blocks that were initialized in the blocks section.

If a block name referenced in this section does not exist in the blocks section, the protocol translator will log an error and ignore the mapping. By default, most blocks have an implicit input and output port that can be connected to a port from a different block so that data flows between the blocks.

In the example below, two blocks are mapped together. The output port of the block named block1 is connected to the input port of the block named block2. Therefore, data will flow from block1 to block2.

{
    "blocks": {
        ...
    },
    "mappings": {
        "block1:output":"block2:input",
        ...
    }
}