当前位置:网站首页>Only three steps are needed to learn how to use low code thingjs to connect with Sen data Dix data

Only three steps are needed to learn how to use low code thingjs to connect with Sen data Dix data

2022-06-11 22:30:00 ThingJS_ Xiaoli

Sen data DIX Have strong data processing ability , Built in mainstream integration plug-ins , Minute level integration IT O & M scenarios and IoT Manage scenario data , Improve efficiency . For non mainstream systems , Support online JS Script editing , Provide flexibility 、 Canonical interface , Meet the personalized needs of low code , Easy one click docking of IOT data .

Q How Sen data relates to ThingJS Data integration ?

A:  With HTTP Server Take the data ,ThingJS The platform passes DIX in HTTP Server DIP Data interaction , The way is in DIX HTTP Server DIP Written in JavaScript Script or splicing block code to realize data interaction .

With HTTP Server Take the data , Just three steps to learn how to use low code and Sen data DIX Data docking .

1. establish DIP

Q What is? HTTP Server DIP

A: HTTP Server DIP It's a Http Service interface , Interfaces can be written internally JavaScript Scripts filter third-party data 、 mapping 、 encapsulation ;DIX-Blockly yes DIX Visual programming , stay HttpServer DIP The code logic is spliced by dragging building blocks , Get third-party data and filter it 、 mapping 、 encapsulation , With Http Send data to ThingJS platform , So as to realize the actual business requirements .

DIP To configure

Custom fill in DIP name .

IN To configure

http The default service path is /http/rest, You can also customize the path .

Request mode : Refers to the way the client requests GET perhaps POST.

Script configuration

After entering the script configuration section , The left editor is JavaScript Script editing area , The code block on the right is a visual programming area .JavaScript Built in code templates in the script editing area , Data integration can be completed only by parameter configuration , Greatly reduce the technical difficulty and development cost .

(JavaScript Script editing area interface )

DIP Instance saving and starting

After the configuration information is filled in , Click save , After successful saving, the data will be saved in Sen DIX The data integration page of HTTPServer Of DIP Already exist . Click start , You can get the data of the third party , And send the processed data to ThingJS platform .

2. Data docking

Upload SDK

ThingJS The platform passes SDK Docking with Mori data DIX, First, in the ThingJS Upload in the project of the platform SDK.

Use SDK

Generate SDK Reference path : On the uploaded file name Right click -> Select the reference path .

adopt SDK Access to the data

Use SDK in Http Method to connect data , Dawson data DIX Page get created HttpServer DIP The address of . The interface address in the sample code url Option set to DIX Of HttpServer DIP Address of the interface , And then you can ask HttpServer DIP Got the data .

3. Data interaction

Sen data DIX Get the third-party data post-processing package , Map the obtained data to ThingJS Properties required by the platform , And encapsulated as ThingJS Data format required by the platform . Finally, return the mapped data to ThingJS The platform completes data interaction .

原网站

版权声明
本文为[ThingJS_ Xiaoli]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/162/202206112153034088.html