当前位置:网站首页>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-10 19:50:00 【51CTO】
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 .

边栏推荐
猜你喜欢

Deep understanding of lightgbm

如何在VR全景作品中添加独立热点?

618大促将至,用AI挖掘差评,零代码实现亿级评论观点情感分析

100003 words, take you to decrypt the system architecture under the double 11 and 618 e-commerce promotion scenarios

2022.05.25(LC_718_最长重复子数组)

中国 璞富腾酒店及度假村旗下酒店推出全新水疗产品共庆6月11日全球健康日

仅需三步学会使用低代码ThingJS与森数据DIX数据对接

2022.05.24 (lc_674_longest continuous increasing sequence)

Domain Driven Design (VI) - Architecture Design

【web】個人主頁web大作業「課錶」「相册」「留言板」
随机推荐
Matlab draws ellipse code according to any angle, sampling points (resolution), position and size
Ding Dong grabs vegetables - monitoring and pushing tools for delivery period
改变世界的开发者丨玩转“俄罗斯方块”的瑶光少年
TiDB - 快速入门,集群搭建
Summary of "performance test" of special test
Apicloud visual development novice graphic tutorial
[C language] still don't understand the structure? Take a look at this article to give you a preliminary understanding of structure
【C语言进阶】指针的进阶【中篇】
大厂是怎么写数据分析报告的?
In the all digital era, how can enterprise it complete transformation?
【web】個人主頁web大作業「課錶」「相册」「留言板」
2022.05.25(LC_718_最长重复子数组)
一文帶你了解J.U.C的FutureTask、Fork/Join框架和BlockingQueue
Deep understanding of lightgbm
How to query the database table storage corresponding to a field on the sapgui screen
长颈鹿的脖子变长其实不是因为吃高处的树叶?科学家在1700万年前的化石中找到答案
Tencent libco collaboration open source library source code analysis full series summary blog
【C语言】这些经典题型大家都掌握了吗?一文学会这些题
Dock/rancher2 deploy redis:5.0.9
Logback exclude specified package / class / method log output