Official | HULFT IoT EdgeStreaming First Step Guide Third Edition: November 1, 2020

Addition and configuration of Mapper

  1. Right-click the stream flow that connects Monitoring processing to Send processing, and select Add mapping from the menu.

    Mapper is placed in between Monitoring processing and Send processing.

     

  2. Double-click the "mapping_1" icon placed in step 1. to open the Mapper editor.

     

  3. In Output destination, set the input schema of the Send processing.

    When the JSON format set for the request body is designated as a REST API specification, you can save that format as a JSON file, and use it for the generation of input schemas.

    = Remarks =

    You can also configure schema settings manually, but when the JSON format is complicated, operations are simpler if you let the schema be read from a JSON file.

    For details on how to manually configure schema settings, refer to the following:

    Right-click the name of the Send processing icon, and select Load schema from the menu.

    The Load schema dialog box appears. Select Read from JSON file.

    Specify the JSON file in File path, and click Finish.

    A tree similar to the following is generated according to the content of the specified JSON file.

     

  4. Create a mapping link.

    Click column_0 in Input source, and move the mouse cursor to drag and drop it onto the element temperature in Output destination.

    When you release the mouse button over the element "temperature," the element column_0 and the element temperature are connected by a mapping link as shown below.

    In the same way, draw a mapping link from the element column_1 in Input source to the element humidity in Output destination.

 

The mapping definition is now finished.

 

 

 

Official | HULFT IoT EdgeStreaming First Step Guide Third Edition: November 1, 2020