Multiprotocol Access Product Introduction QuickStart User Guide Development Guide
EDP TCP transparent transmission MQTT Modbus HTTP
FAQ

Development Process

The test access process is divided into the platform domain and device domain to help you experience the first access and roughly understand the platform features and access protocols.

Test flowchart

PIC

The access steps are as follows:

Step 1: Create a product and select the access protocol.

First, you need to create a product using the access protocol MQTT in the platform. After creating the product, record the product ID.

Step 2: Create a device and record the device ID and other information.

There are two ways to create a device.

(1) Click “Add Device” in the page, enter the device name and authentication information (i.e. device number), and record the device number.

(2) Create a device by calling the device creation API, and enter the device name, access protocol, authentication information, MasterKey and other information. The device will be created in the platform.

Step 3: Establish a protocol connection between the device and platform.

Domain name of the MQTT server address: mqtt.onenet.hk.chinamobile.com.

Using the parameters in Step 1 and Step 2 as login parameters, organize the MQTT connection message via the corresponding interface in the SDK, send it to the platform, and establish an MQTT connection with the platform.

If the connection succeeds, there will be an online mark in the device information:

pic

Step 4: Create the data stream and upload the data point.

Write a code by the interface function in the SDK and upload data to the platform.

Step 5: Display the data stream and view data points.

Click “Data Display” under “Device Management” of OneNET to enter the data display page. Click the drop-down menu to view the recently uploaded data points. You can also select the time interval to view the historical time.

个搜索结果,搜索内容 “

    0 个搜索结果,搜索内容 “