Method for docking real-time data with visualization application of Internet of things

Method for docking real-time data with visualization application of Internet of things

A visualization application of the Internet of Things is created with the hands of technicians, not just for viewing, it needs to be connected to data to truly play a role. So how to dock business data? Technicians need to understand the method of thingjs data price ~ so that your work can be better shown to others!


                                    thingjs- 3D visualization development platform for the Internet of Things

Data docking

Currently we use two standard front-end page methods for data docking, they are Ajax and WebSocket. In this chapter, we will introduce these two methods for data docking in detail:

Ajax data docking

In the ThingJS online development environment, the JQuery library is built in, and you can directly use the Ajax method encapsulated by JQurey for data connection, for example:

Data source access:

Enter the debugging environment, select the top card in the official list, select a fixed position, and use the Ajax data connection as shown in the figure below (supports cross-domain requests).

Select the data in the official list on the right, and click the first data connection.

Enter the debugging environment, select the data in the official list, select the data docking, and use the Ajax data docking as shown in the figure below (supports cross-domain requests).

* Note: In order to simulate data connection, ThingJS platform deploys a separate server 3dmmd.cn to simulate the back-end server of the partner

* This example demonstrates how to do ajax and websoket data docking

/********************* The following is ajax data docking********************/

Enter the debugging environment, select the data in the official list, select the data docking, and use the ajax data docking as shown in the figure below (supports cross-domain requests).

* Note: In order to simulate data connection, ThingJS platform deploys a separate server 3dmmd.cn to simulate the back-end server of the partner

* This example demonstrates how to do ajax and websoket data docking

/********************* The following is ajax data docking********************/

* Note: In order to simulate data connection, ThingJS platform deploys a separate server 3dmmd.cn to simulate the back-end server of the partner

* This example demonstrates how to do ajax and websoket data docking

/********************* The following is websoket data docking********************/

Data docking

The ThingJS platform currently provides the following four methods for data connection:

Data docking_Ajax

Data docking_JSONP

Data docking_WebSocket

Data docking_MQTT

Docking data is not difficult, if you don't have data, thingjs platform can also provide some data. I hope that what everyone makes can be used by enterprises! Better service companies!