当前位置:网站首页>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 .

边栏推荐
- BUUCTF(5)
- 完好性简要介绍
- Tkinter study notes (II)
- One question per day -- verifying palindrome string
- C language implements eight sorts (1)
- Exercise 11-2 find week (15 points)
- Start notes under the Astro Pro binocular camera ROS
- 习题6-6 使用函数输出一个整数的逆序数 (20 分)
- 360 online enterprise security cloud is open to small, medium and micro enterprises for free
- 习题9-1 时间换算 (15 分)
猜你喜欢
随机推荐
C language to achieve eight sorts (2)
Fastapi 5 - common requests and use of postman and curl (parameters, x-www-form-urlencoded, raw)
【JS】1347- localStorage 的高阶用法
Exercise 9-1 time conversion (15 points)
图的基本操作(C语言)
Analysis of the implementation principle of an open source markdown to rich text editor
消息队列入门MQ
Leetcode stack topic summary
图书管理系统
习题9-1 时间换算 (15 分)
Tkinter study notes (III)
什么是死锁?(把死锁给大家讲明白,知道是什么,为什么用,怎么用)
Tkinter study notes (IV)
3.3 naming rules of test modules
Tkinter study notes (II)
Use the securecrtportable script function to read data from network devices
Submit task to thread pool
大学三年应该这样过
Top - K problem
【Uniapp 原生插件】商米钱箱插件









